5/19/2023 0 Comments Iterm2 windowsMy current terminal of choice is iTerm2 which I’ve been using happily for many years. Open up your iTerm preferences from the top bar (iTerm Preferences), or using undefined. Whenever I set up iTerm2 on a new Mac, one of the first things I do is to configure familiar keyboard shortcuts for common navigation and edit actions in the command prompt. Another question, I found that although I can use Control + F3/F4 to move a split and use Shift + F3/F4 to move focus among splits, I cannot use Control + Shift + F3/F4 to move a window. Navigate to 'Keys' using the top menu bar. iTerm ships with some default key mappings, but here's where you can add your own. You may need to delete some of the defaults to make room for the standard Mac shortcuts. For the “Jump to start of word” command, select the “Send Escape Sequence” action and send the escape sequence Esc+b: To configure custom keyboard shortcuts in iTerm2, open the preferences dialog and navigate to the Profiles › Keys › Key Mappings tab:Ĭlick the “+” button to add a new key mapping, or double-click an existing key mapping to edit it.įor example, I typically configure the ⌥ ← shortcut which jumps me to the start of the word under the cursor. That was better, but now I needed to use my mouse or a bunch more shortcuts in order to switch to iTerm, press up to get the previous command, and then switch back to the code to start fixing. Now, whenever you're typing a command in iTerm2, it's really easy to jump back to the start of the word (or even multiple words) to insert more text or delete part of the command - no more need for repeatedly pressing the ← key to navigate back character by character.
0 Comments
Leave a Reply. |