avo-hq/avo

Keyboard shortcuts

クローズ

#2,665 opened on 2024/04/06

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)Ruby (308 件のフォーク)user submission
Avo 4FeatureHelp wantedJavascriptTask

Repository metrics

Stars
 (1,778 個のスター)
PR merge metrics
 (平均マージ 1d 6h) (30d で 67 merged PRs)

説明

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.

コントリビューターガイド