Skip to content

Commit

Permalink
Merge pull request mtxr#185 from javidbu/master
Browse files Browse the repository at this point in the history
Add setting focus_on_result
  • Loading branch information
mtxr authored Jan 25, 2018
2 parents 3956c0b + 1c79b96 commit a0bff7f
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 a0bff7f

Please sign in to comment.