6 ms·
Don't forget that just about everything in OSX and Linux supports readline navigation: C-n - next line C-p - previous line C-f - next char C-b - previo
by tvon 13y ago
Don't forget that just about everything in OSX and Linux supports readline navigation:
C-n - next line
C-p - previous line
C-f - next char
C-b - previous char
C-a - beginning of line
C-e - end of line
I assume there are others as well, but that's pretty much what I use.
- tobidobi 13y agoThanks for the tip!
- seivan 13y agoctrl-k for kill ring ctrl-y for pasting from ring cmd-a for selecting all text
- monkey_slap 13y agoWow, I never knew these. Thank you!
- ptr 13y agoAnd C-d for removing a char, opt/alt-backspace to remove a word backwards, and I think opt/alt-d to remove a word forwards?
- fatboy 13y agoThere's a load of this that can be quite heavily customised as well. Changing the contents of '~/Library/KeyBindings/DefaultKeyBinding.dict' modifies text editing behaviour system wide - though not all applications will honour it. I assume it's due to developers implementing their own text engine type stuff. With DefaultKeyBinding.dict you can implement things like 'delete current line', 'move current line up/down', 'duplicate line' etc. and have these as keybindings almost system wide. It's very nice, but really grates when I work in an application that doesn't support it. Mine is here: https://gist.github.com/ryecroft/7433433 https://gist.github.com/ryecroft/7433433 (a bit messy, but has loads of examples I've found).
- holyjaw 13y agoBrett Terpstra [1] has a good series of posts RE: DefaultKeyBinding.dict. I always refer back to this one when I want to start playing with it again: [1]: http://brettterpstra.com/2011/08/13/keybinding-madness/ http://brettterpstra.com/2011/08/13/keybinding-madness/