sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

[Enhancement] Additions to the palette

Open vanyle opened this issue 1 month ago • 3 comments

The command palette #1473 was a great addition, but it lacks some of the most common tasks making it not very useful in its current state.

I believe the most common commands that one might use the command palette for are:

  • Checking out a branch by name
  • Creating a new branch
  • Pushing
  • Pulling

Adding these commands would go a long way toward making SourceGit more keyboard friendly.

vanyle avatar Nov 25 '25 15:11 vanyle

I've pushed a new commit that adds Checkout Branch command in repository's command palette.

  • For the buttons on the toolbar, I would like to set shortcut keys rather than adding them to the Command Palette.
  • For the Push operation, there are many options, and each is relatively important.
  • For the Pull operation, since it can only be used on the current branch, it is recommended to directly use the Ctrl+Shift+Down shortcut key.

love-linger avatar Nov 26 '25 03:11 love-linger

I would like to add another thing here: press Enter to select and apply the first command, which is how the palette works in Fork.

AlanIWBFT avatar Nov 26 '25 06:11 AlanIWBFT

I'd be happy to contribute pull as a command to the palette. I believe that the palette is a great way to make shortcuts more discoverable: the first time an action is taken, it can be done with the palette, and there, the user sees the keybinding associated with the action to do it faster when needed later

vanyle avatar Nov 26 '25 23:11 vanyle

I think the command palette is a great way of making all features more discoverable. If you don't know a program very well, you typically struggle with finding items you use less often. The palette is a great way of letting people simply search if what they are looking for exists in the first place. It does not have to be the most convenient way of using that feature. Helping people discover it is very beneficial on its own. In my experience a command palette makes it a lot easier to get acquainted with a program and figure out what features it supports.

Additionally, the command palette enables a keyboard-focused workflow without having to remember all keyboard shortcuts, which you might forget about (especially for less often used actions, such as "Clone new repository").

That's all to say, I suggest adding entries even for features that are easily accessible (such as items in the top bar, or items with hotkeys). Example: Because I don't use git bisect, I would not have remembered that there is a button for it. However, if I needed to use it I would have tried searching "bisect" in the command palette.

Doodeletion avatar Dec 03 '25 23:12 Doodeletion