Skip to content

Instantly share code, notes, and snippets.

@garethflowers
Created January 20, 2015 09:58
Show Gist options
  • Select an option

  • Save garethflowers/c9cc6220589a44b687b2 to your computer and use it in GitHub Desktop.

Select an option

Save garethflowers/c9cc6220589a44b687b2 to your computer and use it in GitHub Desktop.
Generates entires in the Windows Explorer context menu.
Windows Registry Editor Version 5.00
; Ensure all ICON_LOCATION and EXECUTABLE_LOCATION paths are escaped
[HKEY_CLASSES_ROOT\*\shell\Sublime]
""="Open APPNAME"
"Icon"="ICON_LOCATION"
[HKEY_CLASSES_ROOT\*\shell\Sublime\command]
""="EXECUTABLE_LOCATION \"%1\""
; when you right click a folder
[HKEY_CLASSES_ROOT\Directory\shell\Sublime]
""="Open with APPNAME"
"Icon"="ICON_LOCATION"
[HKEY_CLASSES_ROOT\Directory\shell\Sublime\command]
""="EXECUTABLE_LOCATION \"%1\""
; when you right click a folder while holding shift
[HKEY_CLithASSES_ROOT\Directory\Background\shell\Sublime]
""="Open in APPNAME"
"Icon"="ICON_LOCATION"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Sublime\command]
""="EXECUTABLE_LOCATION \"%V\""
; when you right click the background, not on a particular file or folder.
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\Sublime]
""="Open in APPNAME"
"Icon"="ICON_LOCATION"
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\Sublime\command]
""="EXECUTABLE_LOCATION \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment