forge: add Ctrl+B as a secondary tmux prefix for macOS #11
No reviewers
Labels
No labels
bug
docs
enhancement
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pedromcaraujo/forge!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/mac-tmux-prefix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On macOS browsers the
Ctrl+Atmux prefix doesn't reliably reach the shared tmux server — readline "beginning of line" wins before it hits the prefix binding, so split-pane navigation (prefix ←↑↓→,prefix z, …) breaks. Linux is unaffected.tmux runs server-side with one shared config, so it can't detect the client OS and per-OS gating isn't possible. Instead:
Ctrl+Aas the primary prefix — Linux is unchanged.Ctrl+Bas a global secondary prefix (prefix2) as a reliable fallback on Mac.Ctrl+B Ctrl+Bstill sends a literalCtrl+Bthrough (send-prefix -2), mirroring theCtrl+A Ctrl+Abehaviour.Takes effect on next `nixos-rebuild` — the module's `reloadForgeTmux` activation script re-sources `/etc/tmux.conf` into the live shared server, so existing channels pick it up without killing sessions.
Test plan
Closes #10