Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, on macOS you have the same shortcuts as gnu readline in any text editing field.

You have these same shortcuts in bash, zsh, the python repl, html form fields, etc. And anything that doesn't use gnu readline can be wrapped in rlwrap.

Note that copying and pasting is an exception. Otherwise, navigating words with shortcuts seems to fairly universally use these shortcuts.



They're really emacs keybindings that readline adopted if I may be allowed a small amount of pedantry.


Appreciate the clarity here; I always wondered which "came first"


My experience on MacOS is that every program has different shortcuts regarding text editing. Home/End/PgUp/PgDn on my external keyboard just not working, and if added to system settings, they still don't work in some apps, Ctrl+Left sometimes working sometimes not, etc.

And what Ctrl/CMD/Shift keys do together looks very random, no logic in it. Like, Ctrl+Left in Zsh scrolls the entire log to top, rather than move the cursor to the start of the line.

I use zsh, slack, Chromium, SublimeText and Zed on Mac.


Yep, which is really handy. I was specifically talking about copy and paste shortcuts being the same even in the terminal though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: