Created
April 12, 2025 03:08
-
-
Save masato3/3620efc0946341df90ec280653c6a46e to your computer and use it in GitHub Desktop.
サクラエディタ マクロ 開いているファイルの親パスをgoneovimに投げてtelescopeからripgrepで検索
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://replication.hatenablog.com/entry/2014/03/06/002812 | |
// シェルオブジェクトの作成 | |
var oWsh = new ActiveXObject("WScript.Shell"); | |
// 編集中ファイルのフルパスを取得する | |
var path = path = GetFilename; | |
// 格納先フォルダを取得する | |
var parPath = path.replace(/[^\\]*$/, "" ); | |
// 親フォルダをgoneovimに投げる | |
oWsh.run("C:/tools/goneovim/goneovim.exe "+parPath); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment