Hacker News new | ask | show | jobs
by ZeroGravitas 1292 days ago
On Mac Os you can also add some other ones that are not enabled by default, there's various write ups on how to do this.

https://irreal.org/blog/?p=259

I really missed C-w for delete word personally.

There's also a vim plugin by tim pope that adds a few readline keys that don't clash.

https://github.com/tpope/vim-rsi

And if you use the fish shell you can have both vi and Emacs shortcuts activated at the same time for the best of both worlds.

2 comments

Until you get used to C-w in any text box, and then randomly close browser tabs (ff on Linux) because muscle memory.
Opening the Firefox console with Shift+Ctrl+C is my particular habit. Of course the shortcuts aren't configurable, it's 2022.
Seems quite cool - I don't suppose you have a copy of the .dict file linked in that blog post? the link is 503 :\
There's a link in the comments to it.

https://github.com/jrus/cocoa-text-system/blob/master/KeyBin...

Though I just have:

    "^w"   = "deleteWordBackward:";                            /* C-W        Delete word backward */
Missed that - thanks :)