arxanas / scm-record

`scm-record` is a UI component to interactively select changes to include in a commit. It's meant to be embedded in source control tooling.
21 stars 9 forks source link

feature: make menu-bar keyboard navigable #44

Open arxanas opened 2 months ago

arxanas commented 2 months ago

Typical GUIs let you open menu bar items using the keyboard. It would be nice if the menu bar items could be at least expanded using the keyboard.

This was originally requested on Discord: https://discord.com/channels/968932220549103686/1235711594185621585

emesterhazy commented 1 month ago

Yeah, this would be great. I used scm-record for a few months before I realized that I could click on the menu bars to learn the keybindings and do things.

We might want to show the keyboard shortcut in parentheses next to the menu item to make it clear how to expand it with the keyboard.

Perhaps we could just use numbers starting from 1? For example:

[File (1)] [Edit (2)] [Select (3)] [View (4)]
arxanas commented 1 month ago

Perhaps we could just use numbers starting from 1? For example:

My dream would be to one day support multi-way splits where you could assign a change to the nth split by pressing the corresponding number key 😍. Perhaps we could use the F-keys for the menu items, similarly to GUI applications?

emesterhazy commented 1 month ago

That should work too :)