this post was submitted on 22 Jul 2024
72 points (98.6% liked)

Programming

17305 readers
296 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] some_guy@lemmy.sdf.org 17 points 3 months ago (11 children)

Ctl-U to delete everything on the line before cursor.

Ctl-E to skip to end of line.

Ctl-A to skip to beginning of line.

[–] astrsk@kbin.run 12 points 3 months ago (3 children)

Or, just use Home and End like they were intended! Kids these days….

[–] Ferk@programming.dev 0 points 3 months ago* (last edited 3 months ago)

That's horrible for muscle memory, every time I switch desk/keyboard I have to re-learn the position of the home/end/delete/PgUp/PgDn keys.

I got used to Ctrl-a / Ctrl-e and it became second nature, my hands don't have to fish for extra keys, to the point that it becomes annoying when a program does not support that. Some map Ctrl-a to "Select all" so, for input fields where the selection is one line, I'd rather Ctrl-a then left/right to go to the beginning/end than fish for home/end, wherever they are.

load more comments (2 replies)
load more comments (9 replies)