Window ordering

This commit is contained in:
Ben Kyd
2026-03-11 16:57:40 +00:00
parent 483be6c985
commit 241b50501b

View File

@@ -4,10 +4,9 @@ set -ga terminal-overrides ",xterm*:Tc"
set -sg escape-time 0 set -sg escape-time 0
set -g history-limit 50000 set -g history-limit 50000
# Detect fish — Homebrew on macOS, system on Linux # Set Fish as default shell (Apple Silicon path)
if-shell "test -x /opt/homebrew/bin/fish" \ set-option -g default-shell /opt/homebrew/bin/fish
"set-option -g default-shell /opt/homebrew/bin/fish; set-option -g default-command /opt/homebrew/bin/fish" \ set-option -g default-command /opt/homebrew/bin/fish
"set-option -g default-shell /usr/bin/fish; set-option -g default-command /usr/bin/fish"
unbind C-Enter unbind C-Enter
@@ -44,10 +43,11 @@ unbind '"'
unbind % unbind %
# --- i3-style pane moving (prefix + H/J/K/L swaps panes) --- # --- i3-style pane moving (prefix + H/J/K/L swaps panes) ---
bind H swap-pane -s '{left-of}' # Try directional swap first; if no pane in that direction, break out and rejoin
bind J swap-pane -s '{down-of}' bind H run-shell 'tmux swap-pane -s "{left-of}" 2>/dev/null; true'
bind K swap-pane -s '{up-of}' bind J run-shell 'tmux swap-pane -s "{down-of}" 2>/dev/null; true'
bind L swap-pane -s '{right-of}' bind K run-shell 'tmux swap-pane -s "{up-of}" 2>/dev/null; true'
bind L run-shell 'tmux swap-pane -s "{right-of}" 2>/dev/null; true'
# --- Window moving (prefix + < / > shifts window position) --- # --- Window moving (prefix + < / > shifts window position) ---
bind -r < swap-window -t -1\; select-window -t -1 bind -r < swap-window -t -1\; select-window -t -1