Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit a0bff7f

Browse files
authored
Merge pull request #185 from javidbu/master
Add setting focus_on_result
2 parents 3956c0b + 1c79b96 commit a0bff7f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

SQLTools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ def onInitialOutputCallback():
217217
# if case this is an output pannel, show it
218218
Window().run_command("show_panel", {"panel": "output." + name})
219219

220-
Window().focus_view(resultContainer)
220+
if settings.get('focus_on_result', False):
221+
Window().focus_view(resultContainer)
221222

222223
return resultContainer, onInitialOutputCallback
223224

SQLTools.sublime-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
// puts results either in output panel or new window
2929
"show_result_on_window": false,
3030

31+
// focus on result panel
32+
"focus_on_result": false,
33+
3134
// clears the output of previous query
3235
"clear_output": true,
3336

0 commit comments

Comments
 (0)