85
you are viewing a single comment's thread
view the rest of the comments
[-] atzanteol@sh.itjust.works 7 points 5 days ago

ctrl+a and ctrl+e are from Emacs.

[-] FauxLiving@lemmy.world 3 points 3 days ago

Is there an emacs key to 'delete this entire word'?

like if I'm using ls to look for a file, then I want to cat a file, I press up to get the previous command, ctrl+a to go to the beginning of the line and then spam d to delete letters. It's be much better if there was a 'delete until whitespace' button.

[-] coycoyoteyote@pawb.social 3 points 3 days ago* (last edited 3 days ago)

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.

[-] FauxLiving@lemmy.world 2 points 2 days ago

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.

[-] beeng@discuss.tchncs.de 2 points 5 days ago

Yes but OP is using vi bindings for line navigation.

this post was submitted on 07 Jun 2025
85 points (98.9% liked)

Linux

55153 readers
829 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS