learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 6 days agomastering-zsh: Advanced topics to take advantage of zshgithub.comexternal-linkmessage-square12fedilinkarrow-up189arrow-down13
arrow-up186arrow-down1external-linkmastering-zsh: Advanced topics to take advantage of zshgithub.comlearnbyexample@programming.dev to Linux@lemmy.mlEnglish · 6 days agomessage-square12fedilink
minus-squarepine@pawb.sociallinkfedilinkarrow-up3·edit-24 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-squareFauxLiving@lemmy.worldlinkfedilinkarrow-up2·4 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.