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