Skip to content

Instantly share code, notes, and snippets.

@akuzemchak
Created August 13, 2011 15:35
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akuzemchak/1143963 to your computer and use it in GitHub Desktop.
Save akuzemchak/1143963 to your computer and use it in GitHub Desktop.
Reveal folder in Finder for Sublime Text 2
# add this to the main command array...
{ "caption": "Open Containing Folder…", "command": "open_this_folder", "args": {"dirs": []} }
# add the following class...
class OpenThisFolderCommand(sublime_plugin.WindowCommand):
def run(self, dirs):
self.window.run_command("open_dir", {"dir": dirs[0]} )
def is_visible(self, dirs):
return len(dirs) == 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment