Sublime Forum

Toggle output pane with keyboard shortcut

#1

I want to use 3 keys for handling the output pane (the one displaying the output of a build command):

F5 => Build
F6 => Cancel the build
F8 => Hide/Show the build output panel - so it toggles it, without clearing the data if it’s just toggled off.

These work for F5/F6:

    { "keys": "f5"], "command": "build" },
    { "keys": "f6"], "command": "exec", "args": {"kill": true} },

I’ve tried searching for how to implement toggling the output panel but with no luck. Help?

1 Like

Build output window
#2

I was wondering something similar recently. it should be something like

    { "keys": "f5"], "command": "build" },
    { "keys": "f6"], "command": "exec", "args": {"kill": true} },
    { "keys": "f8"], "command": "show_panel", "args": {"panel": "output.exec", "toggle": true} }

Due to a bug f8 would only hide the output panel if it has focus though (See https://forum.sublimetext.com/t/is-show-panel-toggle-broken-for-output-panels/3759/1), I just use esc to hide the panel.

0 Likes

#3

[quote=“rush”]I was wondering something similar recently. it should be something like

    { "keys": "f5"], "command": "build" },
    { "keys": "f6"], "command": "exec", "args": {"kill": true} },
    { "keys": "f8"], "command": "show_panel", "args": {"panel": "output.exec", "toggle": true} }

Due to a bug f8 would only hide the output panel if it has focus though (See https://forum.sublimetext.com/t/is-show-panel-toggle-broken-for-output-panels/3759/1), I just use esc to hide the panel.[/quote]

Thanks! That at least doesn’t clear the output pane.

0 Likes

#4

this post still comes in search results… https://github.com/kaste/TogglePanel solves issues for me (added it as a user plugin direct to my User folder, adding the repo via package control didn’t work for me)

0 Likes