ここから本文です
iTerm2で素早くカーソル移動したい
iTerm2で、キーバインドを以下のようにしてみました。
| キーバインド | デオフォルトのアクション | 改変後 | ||
|---|---|---|---|---|
| M-<left> | Send Hex Code | 0x1b 0x1b 0x5b 0x44 | Send Escape Sequence | Esc+ b |
| M-<right> | Send Hex Code | 0x1b 0x1b 0x5b 0x43 | Send Escape Sequence | Esc+ f |
| C-<left> | Send Escape Sequence | [1;5D | Send Escape Sequence | Esc+ b |
| C-<right> | Send Escape Sequence | [1;5C | Send Escape Sequence | Esc+ f |
| S-<left> | Send Escape Sequence | [1;2D | Move Start of Selection Back | Move by Character |
| S-<right> | Send Escape Sequence | [1;2C | Move Start of Selection Back | Move by Character |
| S-M-<left> | Move Start of Selection Back | Move by Word | Move End of Selection Back | Move by Word |
| C-S-<right> | Send Escape Sequence | [1;6C | Move End of Selection Back | Move by Word |
| C-S-<left> | Send Escape Sequence | [1;6D | Move Start of Selection Back | Move by Word |
ついでにdelもSend Hex Codesで4にしておくと幸せになれます。
ジャンル: Mac

