Tmux很棒,但有一个怪癖证明是一个窗格。如果我按 ctrl + b 然后转到箭头键太快以切换窗格我最后只调整当前窗格的大小。摆脱这种行为是非常好的。这是一个在tmux中可解决的问题,还是在我的操作系统中存在某种延迟?
答案 0 :(得分:1)
tmux
是完全可配置的,是的,可以解决这个问题。
我建议您查看tmux
man pages或Pragmatic Bookshelf's "tmux 2" book等其他资源。
例如,您可以完全重新映射用于拆分,移动和调整窗口大小的键,将这样的内容添加到~/.tmux.conf
文件中:
# Splitting panes
bind | split-window -h # Uses "|" to split pane horizontally
bind - split-window -v # Uses "-" to split pane vertically
# Remapping movement keys
bind h select-pane -L # Move focus to pane on the left
bind j select-pane -D # Move focus to pane above the current one
bind k select-pane -U # Move focus to pane below the current one
bind l select-pane -R # Move focus to pane on the right
bind -r C-h select-window -t :- # Move to previous window
bind -r C-l select-window -t :+ # Move to next window
# Resizing panes (notes that is using the uppercase here and resize by 5 chars)
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5