Home Download Buy Blog Forum Support

Open with Sublime Text 2 for folders

Re: Open with Sublime Text 2 for folders

Postby adisos on Thu Feb 23, 2012 8:37 am

Good idea with drag'n'drop folder.
May I ask you how to do the same thing but in context menu of file manager in Ubuntu.
adisos
 
Posts: 5
Joined: Thu Feb 23, 2012 8:34 am

Re: Open with Sublime Text 2 for folders

Postby Zren on Sun Jul 21, 2013 3:20 am

Expanding on the other submission, here's a few .reg files for the default install location. It also adds the sublime icon on the option as well as add the option when you right click the explorer background when inside a folder. Use "Right click > Save link as" for the following links.

https://raw.github.com/Zren/SublimeMisc/master/OpenFolderInSublimeText2_x86.reg

Code: Select all
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Open Folder in Sublime Text 2]
@="Open Folder in Sublime Text 2"
"Icon"="\"C:\\Program Files (x86)\\Sublime Text 2\\sublime_text.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\Open Folder in Sublime Text 2\command]
@="\"C:\\Program Files (x86)\\Sublime Text 2\\sublime_text.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Folder in Sublime Text 2]
@="Open Folder in Sublime Text 2"
"Icon"="\"C:\\Program Files (x86)\\Sublime Text 2\\sublime_text.exe\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Folder in Sublime Text 2\command]
@="\"C:\\Program Files (x86)\\Sublime Text 2\\sublime_text.exe\" \"%V\""


https://raw.github.com/Zren/SublimeMisc/master/OpenFolderInSublimeText2_x64.reg

Code: Select all
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Open Folder in Sublime Text 2]
@="Open Folder in Sublime Text 2"
"Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\Open Folder in Sublime Text 2\command]
@="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Folder in Sublime Text 2]
@="Open Folder in Sublime Text 2"
"Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Folder in Sublime Text 2\command]
@="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%V\""
Zren
 
Posts: 1
Joined: Sun Jul 21, 2013 2:35 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Losgard, W3C [Validator], yrammos and 27 guests