Fix window move to insert instead of swap #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "1-tmux-window-insert-not-swap"
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
<and>bindings after TPM init to fix window movement-dflag so focus follows the moved window, enabling-rrepeat to bubble windows through the list one position at a timerun '~/.tmux/plugins/tpm/tpm') so overrides aren't clobbered by the pluginChanges
.tmux.conf: Added 2bind-keyoverrides (lines 100-104) in the post-TPM settings blockTest Plan
tmux source-file ~/.tmux.conf— reload configprefix + <— window bubbles left one position per pressprefix + >— window bubbles right one position per pressReview Checklist
Related
PR #2 Review
DOMAIN REVIEW
Domain: tmux configuration (dotfiles)
The change is a 6-line addition to
.tmux.confthat overridestmux-plugins/tmux-pain-control's<and>window-swap bindings. The fix is technically correct:swap-windowwith-d(detach/don't follow), which means after a swap the focus stays at the original index. Pressing<again swaps the new window at that index, effectively toggling two windows instead of bubbling.<and>without-d, so focus follows the moved window. Combined with-r(repeatable), this enables bubble-sort behavior -- mashing<walks a window leftward one position per press.run '~/.tmux/plugins/tpm/tpm'would get clobbered when pain-control loads. The existing "post-TPM settings" block (line 97) is the right location.bind-key -n MouseDrag1Status swap-window -dt=): Mouse drag uses root table (-n), targets cursor position (=), and intentionally uses-d. The keyboard bindings use prefix table and target relative positions (-1/+1). These are independent and both behaviors are desirable.No issues found with the implementation.
BLOCKERS
None.
This is a dotfiles configuration change. The BLOCKER criteria (test coverage, input validation, secrets, DRY auth) are not applicable to tmux config. There is no user input to validate, no auth logic, and no secrets.
NITS
Missing newline at end of file: The diff shows
\ No newline at end of fileon line 108. This pre-dates this PR (the last line is the catppuccin format string, not part of this change), but it would be good housekeeping to add a trailing newline in a follow-up. Not blocking.PR body template: Uses
## Review Checklistwhere the SOP template expects the checklist items to be part of## Related. Minor structural deviation -- all required information (Summary, Changes, Test Plan, Related) is present and complete.SOP COMPLIANCE
1-tmux-window-insert-not-swapreferences issue #1)board-dotfiles#358) andCloses #1PROCESS OBSERVATIONS
tmux source-file. Low ceremony, low risk.VERDICT: APPROVED