![]() ![]() Typically not bound in bash, zsh or readline, so we can set it to a unused hexcode which we can then fix in zsh. ![]() Cancel the current command/line: Ctrl + C. ![]() Clean up the line: You can use Ctrl + U to clear up to the beginning. Option + Delete - Delete one world Command + Delete - Delete entire line Consider enabling Natural Text Editing if you want to use Option + Left/Right Arrow for one word forward/backward navigation instead of awkward Control+ F / Esc F (Escape followed by F for forward or B for backward). ⌘+fn+←Delete or ⌘+Delete→ Send Hex Codes: Remove characters on the left, until the beginning of the word: Ctrl + W. 0x15 – More compatible, but typical functionality is to delete the entire line rather than just the characters to the left of the cursor.ĭelete all characters right of the cursor.0x18 0x7f – Less compatible, doesn’t work in node and won’t work in zsh by default, see below to fix zsh (bash/irb/pry should be fine), performs desired functionality when it does work. Move back and forth on a line by words + Arrow Keys: Fast way to jump by words to correct a typo or 'run again' with minor changes to last command.Open the iTerm preferences ⌘+, and navigate to the Profiles tab (the Keys tab can be used, but adding keybinding to your profile allows you to save your profile and sync it to multiple computers) and keys sub-tab and enter the following: Delete all characters left of the cursor Three presets are provided: 'Xterm defaults' is the normal. You can remove an existing mapping by selecting it and pressing '-'. You can add a new keymapping by pressing '+'. Ellipses can be typed with option-semicolon. It must be entered exactly the same as it appears in the menu. OK, learnt this time so I decided to put something here to remind myselft… This action allows you to enter the name of an iTerm2 menu item. Uhm, wait, my iterm2 is not working as I expected… all shortcuts are not working at all! The last time I configured the shortcuts was looooong time ago, and I forgot to record down everything… Got a new Macbook from Apple (after repair), same as usual, install brew, then bulk install all applications I need… Delete previous word or path item in Terminal - Tech Reflect You make a typo and it’s just quicker to do option-delete and retype the word You’re typing a command and you’ve messed up the flags or perhaps the ordering of arguments and you want to redo only part of the command You’re typing a path and you realize it’s incorrect. Well, it’s been a long time that not posting things… and I know the excuse is very easy to find… So I have to admit I was lazy… ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |