refactor: split keymap definitions by domain #394

Merged
barrettruth merged 1 commit from issue-387-split-keymap-defs into main 2026-05-12 13:45:02 +00:00
Owner

Problem

src/lib/keymap-defs.ts owned every shortcut declaration, help row, scope fallback, and runtime lookup helper, making behavior-preserving keymap changes hard to review.

Solution

  • Split declarations into src/lib/keymap/ modules for global, queue, kanban, calendar, navigation, task detail, sections, and help rows.
  • Keep @/lib/keymap-defs as the compatibility aggregate exporting the same public contracts and matching helpers.
  • Preserve existing key ids, order, help copy, section fallback, modifier matching, and calendar/task-panel/navigation bindings.

Verification

  • nix develop --command pnpm vitest run tests/lib/keymap-defs.test.ts
  • nix develop --command pnpm biome check src/lib/keymap-defs.ts src/lib/keymap tests/lib/keymap-defs.test.ts
  • nix develop --command just ci

Closes #387

## Problem `src/lib/keymap-defs.ts` owned every shortcut declaration, help row, scope fallback, and runtime lookup helper, making behavior-preserving keymap changes hard to review. ## Solution - Split declarations into `src/lib/keymap/` modules for global, queue, kanban, calendar, navigation, task detail, sections, and help rows. - Keep `@/lib/keymap-defs` as the compatibility aggregate exporting the same public contracts and matching helpers. - Preserve existing key ids, order, help copy, section fallback, modifier matching, and calendar/task-panel/navigation bindings. ## Verification - `nix develop --command pnpm vitest run tests/lib/keymap-defs.test.ts` - `nix develop --command pnpm biome check src/lib/keymap-defs.ts src/lib/keymap tests/lib/keymap-defs.test.ts` - `nix develop --command just ci` Closes #387
refactor: split keymap definitions by domain
All checks were successful
quality / Test (pull_request) Successful in 17s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 43s
44055555e6
barrettruth deleted branch issue-387-split-keymap-defs 2026-05-12 13:45:03 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!394
No description provided.