learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 1 个月前mastering-zsh: Advanced topics to take advantage of zshgithub.comexternal-linkmessage-square12fedilinkarrow-up186arrow-down14
arrow-up182arrow-down1external-linkmastering-zsh: Advanced topics to take advantage of zshgithub.comlearnbyexample@programming.dev to Linux@lemmy.mlEnglish · 1 个月前message-square12fedilink
minus-squarepine@pawb.sociallinkfedilinkarrow-up3·edit-21 个月前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.
minus-squareFauxLiving@lemmy.worldlinkfedilinkarrow-up2·1 个月前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.
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.