I want to level up my terminal skills, specifically when entering commands, to improve my efficiency. For example, when typing a command, I want to delete a word to the left of the cursor, instead of pressing backspace 5 times.
I already know how this works: the terminal app can catch a keyboard shortcut, such as Ctrl-backspace
, and send a special keycode to the shell. The shell has built in functionality for this type of editing, and it recognizes the keycode and does what we want. Did I explain it correctly?
This works and is fantastic functionality, but where can I find a list of things that are possible? Just today I realized that 0x1f
means "undo". I never knew this was possible, and I love it! I want to see what else is possible, but I don't know what to search for! I tried for half an hour and gave up.
I am using Macos, the default Zsh 5.8 shell, and iTerm2 app.