Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #746 from brycefranzen/add_bottom_dock_visibility_…
Browse files Browse the repository at this point in the history
…toggle

Add option to always open bottom dock with result
  • Loading branch information
akonwi committed Jul 9, 2018
2 parents b4f87f3 + 75a94f3 commit 50e6de4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ module.exports =
default: "full"
enum: ["oneline", "short", "medium", "full", "fuller", "email", "raw", "none"]
description: "Which format to use for `git show`? (`none` will use your git config default)"
alwaysOpenDockWithResult:
order: 7
title: "Always show result output"
type: "boolean"
default: false
description: "Always display bottom dock with output after command is complete (regardless of dock visibility)"
commits:
order: 2
type: "object"
Expand Down
2 changes: 1 addition & 1 deletion lib/views/output-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class OutputView {
}

show() {
if (!this.isVisible) {
if (!this.isVisible || atom.config.get('git-plus.general.alwaysOpenDockWithResult')) {
atom.workspace.open(this).then(() => {
this.isVisible = true
atom.workspace.getBottomDock().show()
Expand Down

0 comments on commit 50e6de4

Please sign in to comment.