randy3k / Terminus

Bring a real terminal to Sublime Text

Home Page:https://packagecontrol.io/packages/Terminus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toggle panel command should hide the panel when run via the Command Palette

eugenesvk opened this issue · comments

Toggle panel command seems to have different behavior depending on how you run it:

  • it toggles (shows/hides) the panel when run via a keybind
  • it only shows (but doesn't hide) the panel when run via the Command Palette

I'm guessing it checks for an active panel and the Command Palette panel is topmost, so instead of hiding the panel, it focuses it instead

It might be beter to make the behavior consistent and if you invoke the command while within the Terminus panel from the Command Palette, it should hide the Terminus panel just like if you pressed a shortcut

Happy new year.

It is unfortunately a behavior control by sublime text itself. Its show_panel command decided not to hide the terminal when triggered from the command palette.

It is now fixed with 8096d8f. Will make a release soon.