|
cuma さん今日は、ひろです。
> 鶴亀メール上でタグジャンプさせることも、マクロを使えば出来ます。
アプローチの仕方は違いますが、マクロを書いてみました。仕様は次の通り。
(1) 秀丸では普通のタグジャンプ
(2) 鶴亀では、
1.カーソル非表示では何もしません。
2.カーソル表示なら、秀丸で該当ファイルを開き、該当行へジャンプ
//-------------- tagjump.mac ----------------------------------------
loaddll "tkinfo.dll";
if(result){
if(dllfunc("IsTuruKame")){
if(browsemode)goto End;
else{
#x = x;
#y = y;
golinetop;
#topx = x;
#topy = y;
$s = searchbuffer;
#s = searchoption;
#m = searchmode;
openreg "CURRENTUSER", "Software\\Hidemaruo\\Hidemaru\\Env";
writeregnum "SelectFound",1;
envchanged;
searchdown2 "(|[A-Za-z]:\\\\).+\\([0-9]\\):?", regular;
moveto selendx, selendy;
searchup "(";
$file = gettext(#topx, #topy, x, y);
right;
#topx = x;
#topy = y;
wordrightsalnen;
$line = gettext(#topx, #topy, x, y);
run hidemarudir + "\\hidemaru.exe /j" + $line + " \"" + $file + "\"";
if( !#m ){
openreg "CURRENTUSER", "Software\\Hidemaruo\\Hidemaru\\Env";
writeregnum "SelectFound",#m;
envchanged;
}
closereg;
setsearch $s, #s;
moveto #x, #y;
}
}
else tagjump;
}
else tagjump;
End:
freedll;
|
|