本文翻译自:iTerm2 keyboard shortcut - split pane navigation
I have been a long time user of the standard Mac Terminal. 我一直是标准Mac终端的长期用户。 Decided to experiment with iTerm2 after hearing good things about it from my colleagues. 在我的同事们听到有关它的好消息之后决定尝试使用iTerm2。
One of the more useful features I am seeing on iTerm2 is its split panes (much like vim split buffers). 我在iTerm2上看到的一个更有用的功能是它的分割窗格(很像vim分割缓冲区)。
In vim, I can move between split buffers using Ctrl + W + arrowkeys
. 在vim中,我可以使用Ctrl + W + arrowkeys
在分割缓冲区之间移动。 Is there a keyboard shortcut for iTerm2 to move between panes as well? 是否有iTerm2的键盘快捷键在窗格之间移动?
#1楼
参考:https://stackoom.com/question/cnMp/iTerm-键盘快捷键-拆分窗格导航
#2楼
⌘ + ⌥ + ← / ↑ / → / ↓可让您按箭头方向导航分割窗格,即使用⌘ + D垂直分割窗格时, ⌘ + ⌥ + ←和⌘ + ⌥ + →将让您切换窗格之间。
#3楼
I was using Terminator before, so I found it convenient to re-map Alt + arrow-key to switch between the panes. 之前我正在使用终结者,所以我发现重新映射Alt +箭头键在窗格之间切换很方便。 This can be done in Preferences -> Keys -> Key Mappings - press the '+' button to add a mapping. 这可以在首选项 - >键 - >键映射中完成 - 按“+”按钮添加映射。 Also, in my case such a mapping was already defined in Profiles, I simply removed it. 另外,在我的情况下,这样的映射已在Profiles中定义,我只是将其删除。
#4楼
Spanish ISO: 西班牙语ISO:
- ⌘ + ⌥ + [ goes left top ⌘ + ⌥ + [向左上方
- ⌘ + ⌥ + ] goes bottom right ⌘ + ⌥ + ]向右下方
#5楼
there is configuration in the following way: 有以下方式配置:
Preferences -> keys -> Navigation shortcuts
the 3rd option: shortcut to choose a split pane is "no shortcut" by default, we can choose one 第3个选项:默认选择拆分窗格的快捷方式是“无快捷方式”,我们可以选择一个
cheers 干杯
#6楼
Cmd ] and Cmd [ navigates among split panes in order of use. Cmd ]和Cmd [按使用顺序在分割窗格之间导航。