avo-hq/avo

Keyboard shortcuts

Chiusa

#2665 aperta il 6 apr 2024

 (4 commenti) (1 reazione) (0 assegnatari)Ruby (308 fork)user submission
Avo 4FeatureHelp wantedJavascriptTask

Metriche repository

Star
 (1778 stelle)
Metriche merge PR
 (Merge medio 1g 6h) (67 PR mergiate in 30 g)

Descrizione

Feature

We'd love to add keyboard shortcuts to Avo. We already have Mousetrap installed but I think this solution (2025 update) from Yaro is a bit more Stimulus-oriented.

This is another approach (https://github.com/github/hotkey, controller)

Initial shortcuts

We don't need to support "everything" in the initial iteration, so let's pick a few we know they might be highly used.

  • Shift + ? Show a modal with the current shortcuts
  • Command + K Open search (already supported but we want to show it there)
  • command + return Save button
  • command + \ toggle sidebar
  • esc close modal. Ensure it really closes all modals
  • c create button when on an index view
  • anything else?

Current workarounds

Add them with custom JS.

Guida contributor