Skip to content

Commit

Permalink
Add setting focus_on_result
Browse files Browse the repository at this point in the history
  • Loading branch information
javidbu committed Jan 25, 2018
1 parent 3956c0b commit 1c79b96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SQLTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def onInitialOutputCallback():
# if case this is an output pannel, show it
Window().run_command("show_panel", {"panel": "output." + name})

Window().focus_view(resultContainer)
if settings.get('focus_on_result', False):
Window().focus_view(resultContainer)

return resultContainer, onInitialOutputCallback

Expand Down
3 changes: 3 additions & 0 deletions SQLTools.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
// puts results either in output panel or new window
"show_result_on_window": false,

// focus on result panel
"focus_on_result": false,

// clears the output of previous query
"clear_output": true,

Expand Down

0 comments on commit 1c79b96

Please sign in to comment.