News for hackers. Stuff that matters.
Re:Show HN: I built an interactive course that helps you lea... by ilvez on Sunday July 10, 2022 @01:36AM (#32042142)
Didn't know about that. I'm using default shell shortcuts, which are different set of shortcuts. Like:

* Ctrl-u: clear line and start from the beginning * Ctrl-a: go to the beginning of line * Ctrl-e: go to the end of line * Ctrl-b: move backwards * Ctrl-f: move forwards * Ctrl-c: leave the command as it is, just cancel the command and start with new line * Ctrl-w: delete a word before cursor * Ctrl-h: delete a character before before cursor * Ctrl-d: delete a character after cursor * Ctrl-t: swap last 2 characters (this is one of my favourites in terms of lulz, I actually trained myself to use it :D) * ...

Pulled these out of my fingers, but there are more. Don't know the correct source to point to.

What's good about those is that they work by default and behind every computer.

Re:Show HN: I built an interactive course that helps you lea... by lovehashbrowns on Sunday July 10, 2022 @03:30AM (#32042604)
This is where you can find a reference for the default emacs mode: https://catonmat.net/bash-emacs-editing-mode-cheat-sheet

Unless you’re super into vim, it makes more sense to learn the basic emacs keybinds ‘cause like you said, it’s almost everywhere.