0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

tmuxのpane操作を直感的にする

0
Posted at

tmuxのpane操作が複雑という意見をちょっと耳にしたので。
下記設定で割と直感的になるかと思います。

tmux.conf
set -g prefix C-a            # prefixキーをC-aに変更
bind | split-window -h       # prefix + | でペインを左右に分割
bind - split-window -v       # prefix + - でペインを上下に分割
bind C-a select-pane -t :.+  # prefix + C-a(実質C-a連打)でローテーション移動
  • C-a + | で左右に分割
  • C-a + - で上下に分割
  • C-a連打でローテーション移動

特に、paneにマジックナンバー込みのショートカット(Alt+1、Alt+2、...)を割り当てるのは良く見かけますが、暗記が必要になるので、直感的では無いと思います。個人的にはC-a連打が最適です。

「設定が必要な時点でアウト」という見方もあるかと思いますが、道具って、初心者向けに特化すると、熟達すればするほど逆に使いにくくなると思うのです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?