コンテンツにスキップ

Keybindings

tmux, WezTerm, Zellij の 3 つの terminal で共通の keybinding を使えるようにしている。prefix key は Ctrl+q

操作Key備考
横分割Prefix + \
縦分割Prefix + -
pane 移動Prefix + h/j/k/l
pane resizePrefix + H/J/K/L
pane 最大化Prefix + z
floating 切替Prefix + wZellij のみ
埋込/float 切替Prefix + eZellij のみ
pane を閉じるPrefix + x
操作Key備考
前の tabCtrl+hprefix 不要
次の tabCtrl+lprefix 不要
Tab 1-5Ctrl+1-5prefix 不要、Zellij のみ
新規 tabPrefix + tZellij のみ
直前の tabPrefix + Tabtmux のみ
操作Key備考
mode に入るPrefix + [WezTerm は Prefix + c
移動h/j/k/l, w/b/e, 0/$Vim 式
半 page scrollCtrl+u/d
全 page scrollCtrl+b/f
検索/n/NCtrl+r で match type 切替
選択開始v / V / Ctrl+v文字 / 行 / 矩形
copy して終了yclipboard に copy
mode を抜けるEsc or q
操作Key
detachPrefix + d
操作Key説明
MonoclePrefix + ffuzzy finder
HarpoonPrefix + bpane bookmark 管理

tmux-resurrect と tmux-continuum の設定。

  • 15 分ごとに自動 save
  • tmux 起動時に自動 restore
  • 手動 save: Prefix + Ctrl+s
  • 手動 restore: Prefix + Ctrl+r
  • 復元対象: window, pane, working directory, 実行中 program (vim, nvim, ssh など)
  • 保存先: ~/.tmux/resurrect/
Terminal window
# session 一覧
zellij list-sessions
# session に attach
zellij attach <session-name>
# detach → Prefix + d
# session 削除
zellij delete-session <session-name>

Zellij の session は明示的に削除するまで残る。