Open
Conversation
Collaborator
Author
|
@danirabbit This is still under construction but before I do too much on it I would welcome your opinion on whether this is viable. It doesn't have to be a dialog of course - it could be a pane or a stack for example and accessed by a button rather than a context menu. The main idea is to have all the git branch actions in one place, accessed by one hot-key, sharing code where possible. |
Collaborator
Author
|
I have dog-fooded this a while and found it very useful even with just a checkout functionality so lets get a review. |
Collaborator
Author
|
Need to remove/hide unimplemented functions. |
Collaborator
Author
|
Needs testing after merge accepted both changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1577
An attempt to reduce the click requirement of common branch actions like checkout and to make it more keyboard friendly. Potentially could be more discoverable by linking to a button in the UI.
The existing hot-key
<Ctrl>Bnow raises a dialog for all branch actions (some not yet implemented).Other branch functions can be added later such as Delete, Commit, Push etc
The list of branches includes categories "Recent", "Local" and "Remote" in alphabetical order and is filtered on names containing the entry text.
The "Checkout" action is the first page in a stack linked to a StackSidebar.
"Recent" branches only contains branches checked out in the current session of Code but may be persisted later.