Skip to content

Instantly share code, notes, and snippets.

@hluk
Last active March 7, 2016 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hluk/e5b26a3a67066c48bfbf to your computer and use it in GitHub Desktop.
Save hluk/e5b26a3a67066c48bfbf to your computer and use it in GitHub Desktop.
CopyQ - Edit File
[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