learnbyexample to [email protected]English • 5 days agomastering-zsh: Advanced topics to take advantage of zshgithub.comexternal-linkmessage-square12fedilinkarrow-up189arrow-down11cross-posted to: [email protected]
arrow-up188arrow-down1external-linkmastering-zsh: Advanced topics to take advantage of zshgithub.comlearnbyexample to [email protected]English • 5 days agomessage-square12fedilinkcross-posted to: [email protected]
minus-squarepinelinkfedilink3•edit-23 days agoM-d, aka alt+d Generally in emacs ctrl+whatever operates on characters, while alt+whatever operates on words. For example, you can do ctrl+f/b to go forward/backword a character, and alt+f/b to go forward/backward a word.
minus-square@[email protected]linkfedilink2•3 days agoOh yeah, that’s way better. Thanks! I’m using zsh and trying the emacs mode, that alt operates on words is the secret sauce I was looking for.
M-d, aka alt+d
Generally in emacs ctrl+whatever operates on characters, while alt+whatever operates on words. For example, you can do ctrl+f/b to go forward/backword a character, and alt+f/b to go forward/backward a word.
Oh yeah, that’s way better. Thanks!
I’m using zsh and trying the emacs mode, that alt operates on words is the secret sauce I was looking for.