Skip to content

Commit 65b29b7

Browse files
committed
also hide output panel on esc
1 parent cef0e23 commit 65b29b7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

q_out_panel.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ def do(self, edit, input=None):
1919
panel.set_read_only(True)
2020
self.view.window().run_command("show_panel", {"panel": "output.q"})
2121
return '' #return something so that the chain will continue
22+
23+
class QHideOutPanelCommand(q_chain.QChainCommand):
24+
25+
def do(self, edit, input=None):
26+
self.view.window().run_command("hide_panel", {"panel": "output.q"})
27+
return '' #return something so q_chain can continue

sublime/Default (OSX).sublime-keymap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{ "keys": ["super+j"], "command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_popup_json", "q_update_completions"]}},
66
{ "keys": ["super+shift+enter"],"command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_panel", "q_update_completions"]}},
77

8-
{ "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_out_popup_close", "hide_auto_complete"]}},
8+
{ "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_hide_out_panel", "q_out_popup_close", "hide_auto_complete"]}},
99

1010
//connection
1111
{ "keys": ["super+alt+q"], "command": "show_connection_list"},

sublime/Default (Windows).sublime-keymap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{ "keys": ["ctrl+j"], "command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_popup_json", "q_update_completions"]}},
66
{ "keys": ["ctrl+shift+enter"],"command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_panel", "q_update_completions"]}},
77

8-
{ "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_out_popup_close", "hide_auto_complete"]}},
8+
{ "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_hide_out_panel", "q_out_popup_close", "hide_auto_complete"]}, "context":[{ "key": "selector", "operator": "equal", "operand": "source.q" }] },
99

1010
//connection
1111
{ "keys": ["ctrl+alt+q"], "command": "show_connection_list"},

0 commit comments

Comments
 (0)