pathfinder icon indicating copy to clipboard operation
pathfinder copied to clipboard

Add hotkey support

Open nikivdev opened this issue 2 years ago • 2 comments

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

CleanShot 2023-09-23 at 11 23 55@2x

Jump between Query/Mutation would be nice to have as keybinds too.

nikivdev avatar Sep 23 '23 09:09 nikivdev

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?

jonathanawesome avatar Sep 24 '23 23:09 jonathanawesome

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.

nikivdev avatar Sep 25 '23 08:09 nikivdev