Skip to content

Track C: keyboard shortcuts and command menu (Linear keys) - #9

Closed
erikgoins wants to merge 3 commits into
mainfrom
feature/keyboard
Closed

erikgoins wants to merge 3 commits into
mainfrom
feature/keyboard

Conversation

@erikgoins

@erikgoins erikgoins commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Roadmap Track C (decision 028). Stacked on #8: the base is feature/speed, so this diff shows only Track C. Merge #8 first; GitHub then retargets this PR to main.

What

  • Shared keymap (packages/core/src/keymap.ts): every shortcut as data, a matcher for chords and two-key sequences (G then S), display strings. The Mac app reads the same file.
  • Command menu (mod+K): search tasks or run any command, each listed with its keys. / searches tasks. ? shows every shortcut.
  • Linear's keys: C, J/K/arrows, X, Shift+J/K, mod+A, Space (panel follows focus), Enter, Esc; S status, P priority, E estimate, Shift+D due date, Shift+C cycle, mod+Shift+X close/reopen; mod+. / mod+Shift+, / mod+Shift+. copy ID / URL / branch; G then S (settings; G then I/M/T/V stay reserved for Inbox / My tasks / Triage / Views, guarded by a test; Tasks and Members are in the command menu); mod+B, V then L/B/T; mod+Z undo.
  • Bulk edits on a selection run one by one with progress, and undo as one step.
  • Read Only: reading keys work; edit keys say "Your role cannot edit tasks." and send nothing.

Tested

  • Locally: pnpm lint, pnpm typecheck, pnpm test (388 passed), pnpm test:e2e (26 passed), pnpm smoke: all pass.
  • keymap.test.ts: conflict check (proven red with a duplicate), sequences, timeout, scopes, platform modifiers, shifted punctuation.
  • keyboard.spec.ts: 15 E2E tests, one per shortcut group, including exact PATCH bodies, clipboard contents, the typing guard with a positive control, and Read Only.

Notes

  • cmdk 1.1.1 added through shadcn add command, pinned exactly; existing shadcn files left as they were.
  • Bulk edits are client-side and sequential (each a normal synchronous write). The server job queue from decision 027 is not built yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun

erikgoins and others added 2 commits November 10, 2026 09:30
- packages/core keymap: every shortcut as data, a matcher for chords and
  two-key sequences, display strings; shared with the Mac app (decision 028).
- useShortcuts: one listener, typing and modal guards, scopes.
- Command menu (cmdk): search tasks, run any command with its keys; pickers for
  status, priority, cycle; value dialog for due date and estimate.
- Focus, selection, and on-screen order in every view; bulk edits run one by one
  and undo as one step. Copy ID, URL, branch name. ? shortcut sheet.
- Tests: keymap units (conflicts proven red), 15 E2E tests across every group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
PR #9 bound them to Members and Tasks; the accepted keymap (Q6, decision 028)
reserves them. Members and Tasks are menu-only. RESERVED in keymap.ts lists
Linear's keys for unbuilt pages, and a test (proven red) keeps them unbound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
@erikgoins

Copy link
Copy Markdown
Contributor Author

Landed in main through #11 (merge commit 29d454d), which contained every commit of this PR plus the fix for its CI failure. A merge of this branch now adds nothing: main already has the same tree.

@erikgoins erikgoins closed this Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant