Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add context menus #1327

Open
andree182 opened this issue Apr 12, 2024 · 0 comments
Open

Add context menus #1327

andree182 opened this issue Apr 12, 2024 · 0 comments

Comments

@andree182
Copy link

andree182 commented Apr 12, 2024

For people that don't want to keep 20 key bindings in head, it could be very handy, if some kind of simple context menus (accessible e.g. via key 'x' :)) would be available - similar to what gitk has. It can be achieved using 'dialog' or similar, but it's not as seamless (+some functionality has to be reimplemented).

It could probably just show the currently applicable bindings, for simple implementation.

Example:

1 * [HEAD] [STABLE_123] {origin/STABLE_123} set release
2 * fix bug abc
3 | * [master] fix bug abc
4 | * {origin/master} commit xxx
5 |/
6 * commit yyy
7 * {origin/STABLE_42} commit zzz

On line 1:

  • Allow choosing one of the refs (because %(refname) only picks the latest one, e.g. HEAD - and parsing %(text) is not so nice...). Perhaps such thing could also be accessed by %(chosen_ref) or something?
  • Have a commit/branch/tag-predefined actions, so after picking the ref, a followup menu could do 'git checkout', 'git checkout -f', 'git rebase', forward it to clipboard or whatever else.

On line 4, options like:

  • git cherry-pick %(ref)
  • git reset --hard %(ref)

The context menus could be configured very similarly to the key bindings.

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

No branches or pull requests

1 participant