Re:Xcode Cheat Sheet
by tvon on Tuesday November 12, 2013 @09:37AM
(#6718023)
Don't forget that just about everything in OSX and Linux supports readline navigation:
I assume there are others as well, but that's pretty much what I use.
[ Parent
| on HN ]
There'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 (a bit messy, but has loads of examples I've found).
Brett 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/
And 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?
ctrl-k for kill ring
ctrl-y for pasting from ring
cmd-a for selecting all text
Re:Xcode Cheat Sheet
by monkey_slap on Tuesday November 12, 2013 @10:57AM
(#6718486)
Wow, I never knew these. Thank you!