Last active
August 23, 2024 12:02
-
-
Save hluk/e5b26a3a67066c48bfbf to your computer and use it in GitHub Desktop.
CopyQ - Edit File
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
[Command] | |
Name=Edit File | |
Match=^([a-zA-Z]:[\\\\/]|~|file://|%\\w+%|$\\w+|/) | |
Command=" | |
copyq: | |
var editor = config('editor') | |
var fileName = str(input()) | |
.replace(/^\\/([a-zA-Z])\\//, '$1:/') | |
.replace(/^file:\\/\\//, '') | |
hide() | |
execute(editor, fileName)" | |
Input=text/plain | |
InMenu=true | |
Icon=\xf040 | |
Shortcut=f4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment