diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 201a659..fabe5b5 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -68,6 +68,12 @@ bind _ split-window -v -c "#{pane_current_path}" unbind '"' unbind % +# 快速调整窗口到全屏 +unbind Up +bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp +unbind Down +bind Down last-window \; swap-pane -s tmp. \; kill-window -t tmp + # in version 2.3 and below https://github.com/tmux/tmux/commit/76d6d3641f271be1756e41494960d96714e7ee58 setw -g mode-keys vi bind-key -t vi-copy 'v' begin-selection