sublime_terminal
sublime_terminal copied to clipboard
Disable 'open terminal here' menu item for unsaved documents
- Open Sublime Text
- File / New File
- Right click in text editor, 'Open terminal here...'
Expected: Menu item 'Open terminal here' is greyed out (disabled)
What actually happens: You get a popup error "Terminal: No place to open terminal to"
This should be possible via Sublime Text's is_enabled
method. Would you be interested in opening a PR adding this feature?
http://www.sublimetext.com/docs/3/api_reference.html#sublime_plugin.WindowCommand
Thanks for the link. The Sublime API is really neat.