pathfinder
pathfinder copied to clipboard
Add hotkey support
Would love these hotkeys:
cmd+t = open new tab
cmd+w = close tab
cmd+1/2/3 = jump between open tabs
control/some-other-modifier+1/2/3 = jump between sections
Jump between Query/Mutation would be nice to have as keybinds too.
Would love to implement shortcuts/hot keys around the app, but need to figure out a few things first:
- how does the app handle hotkeys when a monaco editor has focus?
- if proposed hotkeys conflict with other hotkeys/binds, how do we allow the ability to override/replace ours?
- how do we display the list of hotkeys to users for reference?
how does the app handle hotkeys when a monaco editor has focus?
I would prefer these hotkeys to be 'global' so they would be activated whether monaco editor is in focus or not.
if proposed hotkeys conflict with other hotkeys/binds, how do we allow the ability to override/replace ours?
I like how VSCode does this. If you create a hotkey that conflicts with default or some other hotkey, show it. And allow users resolve the conflict on what hotkey is assigned to what. User set hotkeys should take preference.
how do we display the list of hotkeys to users for reference?
Via a settings panel > keybinds is how I would prefer it.