Permalink
Browse files

terminal feature mac only

  • Loading branch information...
1 parent b09e3c4 commit 313e6f3c2b61770007d7498ddb3de907752b392a @al63 al63 committed May 11, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 sublime_files.py
  2. BIN sublime_files.pyc
View
@@ -1,5 +1,5 @@
import sublime, sublime_plugin
-import os
+import os, sys
from subprocess import call
class SublimeFilesCommand(sublime_plugin.WindowCommand):
@@ -69,7 +69,10 @@ def handle_navigator_option(self, call_value):
#Options for when a user selects "."
def open_directory_options(self):
if self.home == "HOME":
- self.directory_options = ["* Open Terminal", "* Create new file", "* Set bookmark here", "* Back"]
+ self.directory_options = ["* Create new file", "* Set bookmark here","* Back"]
+ #Terminal opening really mac only as of now...
+ if sys.platform == "darwin":
+ self.directory_options.append("* Open terminal here")
self.window.show_quick_panel(self.directory_options, self.handle_directory_option, sublime.MONOSPACE_FONT)
@@ -84,7 +87,7 @@ def handle_directory_option(self, call_value):
elif selection == "* Set bookmark here":
self.bookmark = os.getcwd()
self.open_navigator()
- elif selection == "* Open Terminal":
+ elif selection == "* Open terminal here":
directory_split = os.getcwd().split()
actual_dir = ""
for element in directory_split:
View
Binary file not shown.

0 comments on commit 313e6f3

Please sign in to comment.