sublime_terminal icon indicating copy to clipboard operation
sublime_terminal copied to clipboard

Disable 'open terminal here' menu item for unsaved documents

Open hickford opened this issue 8 years ago • 2 comments

  1. Open Sublime Text
  2. File / New File
  3. 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"

hickford avatar Jun 14 '16 19:06 hickford

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

twolfson avatar Jun 14 '16 19:06 twolfson

Thanks for the link. The Sublime API is really neat.

hickford avatar Jun 14 '16 19:06 hickford