by alexdme · 4y ago · 0 comments
Note for people still using macos, you can enable many more readline shortcuts by creating a special file at ~/Library/KeyBindings/DefaultKeyBinding.dict. I made a repo that simplifies the process to just a single git clone when setting up a new machine: https://github.com/alexdavid/keybindings
What keys do ~ and ^ represent?
{
"^w" = "deleteWordBackward:";
"~f" = "moveWordForward:";
"~b" = "moveWordBackward:";
"~d" = "deleteWordForward:";
"~<" = "moveToBeginningOfDocument:";
"~>" = "moveToEndOfDocument:";
"~w" = "copy:";
"^y" = "yank:";
"^t" = "transpose:";
"^p" = "moveUp:";
"^n" = "moveDown:";
"^u" = "deleteToBeginningOfLine:";
}^ = Control
~ = Escape
0: I think VT100, but don't quote me on that
1: or possibly "1B 78", depending on how it handled shift; I don't remember exactly.