Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jun 22, 2025

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>B now raises a dialog for all branch actions (some not yet implemented).

  • Implement checkout branch (local)
  • Implement checkout branch (remote)
  • Implement Create New Branch
  • Show recently used branches

Other branch functions can be added later such as Delete, Commit, Push etc

Screenshot from 2025-06-22 19 37 03

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.

@jeremypw
Copy link
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.

@jeremypw jeremypw marked this pull request as ready for review October 18, 2025 17:09
@jeremypw
Copy link
Collaborator Author

jeremypw commented Oct 18, 2025

I have dog-fooded this a while and found it very useful even with just a checkout functionality so lets get a review.

@jeremypw jeremypw requested a review from a team October 18, 2025 17:10
@jeremypw
Copy link
Collaborator Author

Need to remove/hide unimplemented functions.

@jeremypw jeremypw added this to the 8.2 milestone Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quickly open recently worked on projects/branches

2 participants