Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Add hotkey support #70

Open
nikitavoloboev opened this issue Sep 23, 2023 · 2 comments
Open

Add hotkey support #70

nikitavoloboev opened this issue Sep 23, 2023 · 2 comments
Labels
design-required This feature needs design exploration/mockups before proceeding to code

Comments

@nikitavoloboev
Copy link

nikitavoloboev commented Sep 23, 2023

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.

@jonathanawesome jonathanawesome added the design-required This feature needs design exploration/mockups before proceeding to code label Sep 24, 2023
@jonathanawesome
Copy link
Contributor

jonathanawesome commented Sep 24, 2023

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?

@nikitavoloboev
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design-required This feature needs design exploration/mockups before proceeding to code
Development

No branches or pull requests

2 participants