Skip to content

[CTX-0258] feat(config): pin Mod+M/HJKL both mods, add Mod-aware resize variant - #435

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0258/feat-workspace-keys-easy
Sep 9, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0258/feat-workspace-keys-easy

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Closes #434. Task: CTX-0258 | RFC: DEC-0034.

Contract: Mod+M zoom + Mod+HJKL focus pinned under Alt and Super (tests only, no prod change for these); resize gains Mod-aware variant ctrl+shift+alt HJKL (rebinds to ctrl+shift+super under Super flip) alongside legacy shift+ctrl; shift+alt stays new_split (single-owner); uniqueness holds under both mods; shell keys unbound.

Security: keymap-only defaults; parsing stays total/fail-closed/bounded; no new I/O, unsafe, or ambient authority; no shell-typing theft (all new chords carry modifiers).
Performance: defaults table +4 entries; matching stays bounded linear scan; no hot-path change.

Docs: keymap.rs module/ModKey/DEFAULT_KEYMAPS docs updated; main.rs help text left as-is (still true, lists legacy variant) — follow-up if exhaustive help wanted.

Validation: cargo test -p bitty-config (156 passed), clippy -D warnings, fmt --check, windows-gnu check, workspace check green (1 pre-existing bitty-app escaped-newline warning). Logs: worktree recording/ctx-0258/ (uncommitted).

Follow-up: DEC/commander call on literal Mod+Shift resize vs new_split collision (see issue + CarryCtx risk).

@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 9, 2026
@Xuepoo Xuepoo added feat Feature area:ux P2 Priority: medium labels Sep 9, 2026
@Xuepoo
Xuepoo force-pushed the ctx-0258/feat-workspace-keys-easy branch from ea3f410 to 4ac9bf3 Compare September 9, 2026 05:40
@Xuepoo

Xuepoo commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Rebase onto origin/main 227ca3a (CTX-0257 #433) complete. Conflict was confined to crates/bitty-config/src/keymap.rs (5 hunks); resolution keeps BOTH sides with no logic changes:

  • Module + DEFAULT_KEYMAPS docs: CTX-0257 workspace-entry paragraph + CTX-0258 resize-variant clause merged.
  • Table: 43 entries = 35 base + 4 workspace (alt+n/-/=/tab; alt+w + alt+1..9 rebinds kept as workspace_close/workspace_focus) + 4 resize (ctrl+shift+alt+h/j/k/l).
  • Uniqueness audit: both-mods loop (0258) + 43-count assert + DEC-0034 checks (0257).
  • Tests: workspace_entry_survives_super_flip (0257) + workspace_keys_mod_m_and_hjkl_pinned_both_mods + resize_has_legacy_and_mod_aware_variants_both_mods (0258) all kept.

Gates (scoped): cargo test -p bitty-config 157/157 pass (keymap 27/27), cargo fmt --check clean, cargo clippy -p bitty-config clean. Full just check exceeds local bash time budget; deferring to CI. New head 4ac9bf3. Ready for re-review (no merge by fixer).

@Xuepoo
Xuepoo merged commit 6e662a2 into main Sep 9, 2026
10 checks passed
@Xuepoo
Xuepoo deleted the ctx-0258/feat-workspace-keys-easy branch September 9, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ux feat Feature P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workspace keys easy: pin Mod+M/Mod+HJKL coverage + add Mod+Shift+HJKL resize variant

1 participant