Tmux Swap Windows Pane Interactively - Linux TMUX

preview_player
Показать описание
swap tmux windows or panes interactively using choose-tree mode for viewing tree list style while using hotkeys or vim keys or arrow keys
Рекомендации по теме
Комментарии
Автор

I guess the advantage is you can detach and come back to your layout later. Cloud 9 (Amazon) has this capability too, if your computer crashes all your windows/terminals are saved in Cloud 9, and you can save window layouts, like maybe a different layout for each project.

PJBrunet
Автор

In fact, the pane index and window index could be changed to start from 1.


set -g base-index 1 # start window index at 1
setw -g pane-base-index 1 # pane index starts at 1


# start session index at 1
set-hook -g session-created 'run "command -v 2>&1 && tmux-renumber-sessions"'
set-hook -g session-closed 'run "command -v 2>&1 && tmux-renumber-sessions"'

partypat
Автор

bind-key Left swap-window -s -1 and bind-key Right swap-window -s +1 This lets you hit ctrl-b left and right to move the window right / left quickly. h and l are already bound, ctrl-b l takes you to the last window you were on so thats what I do. I bind ctrl-b Up and Down to next and previous session to quickly move between sessions.

jasonxoc