Replace various "Visualize with..." menu items with single configurable item #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background:
As per discussion in Pull request 1, the Git bundle menu is quite long and has top-level commands to open the project in various GUI apps (GitX, gitk, etc.). I wanted to add similar support for SourceTree, but this would make the menu even longer and more unwieldy.
In this pull request:
Visualize History with ...
items menu items have been removed and replaced with a singleVisualize History with External Git App
item. (There's probably a better way to name this command...suggestions?)Visualize History with External Git App
is configured via the config dialog. The user can choose between several preset apps, or choose "custom" and add a custom shell command to be run instead.I've tested the changes with every listed app except for Gitnub.
The UI for the config dialog could be cleaned up a bit more: There are text fields for custom paths to GitX and Gitnub which are currently displayed no matter which app is selected from the menu. I'd like to add some Javascript to dynamically show/hide these fields based on the app selection, but before I go down that path, I wanted to get some feedback on this overall approach.
Let me know what you think of this approach. Thanks.