learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 8 days agomastering-zsh: Advanced topics to take advantage of zshgithub.comexternal-linkmessage-square12fedilinkarrow-up188arrow-down12cross-posted to: linux@programming.dev
arrow-up186arrow-down1external-linkmastering-zsh: Advanced topics to take advantage of zshgithub.comlearnbyexample@programming.dev to Linux@lemmy.mlEnglish · 8 days agomessage-square12fedilinkcross-posted to: linux@programming.dev
minus-squarepine@pawb.sociallinkfedilinkarrow-up2arrow-down1·edit-26 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·5 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.