Earlier quoted context omitted.
A lot of the Emacs shortcuts work in OS X (most of the system) as well as on Linux (bash and other users of readline).
I use Vim and was unaware that this shortcut existed. Are there any other Emacs shortcuts which are useful in OSX?
Quick tip for developers who use OS X
21–30 of 406 posts
Re: Quick tip for developers who use OS X
#22bindkey -v
Now be happy, hit and, use ^ and $ but also f t and also ,;.
You can copy/paste with dd, Y, etc...
Re: Quick tip for developers who use OS X
#23Meta-f jump forward a word
Meta-b jump backwards a word
Re: Quick tip for developers who use OS X
#24OK, so for vim users with zsh: bindkey -v Now be happy, hit and, use ^ and $ but also f t and also ,;. You can copy/paste with dd, Y, etc...
Re: Quick tip for developers who use OS X
#25Osx terminal uses almost all of the emacs movement keys by default. Ctrl-a and ctrl-e are useful but I find the meta movement keys to be the most helpful. (usually alt or ESC) Meta-f jump forward a word Meta-b jump backwards a word
It's up to the process running in Terminal.app to support the key sequences sent to it. I doubt that M-f would work if your shell (bash, zsh, etc) were in Vi-mode rather than the default of Emacs-mode.
Re: Quick tip for developers who use OS X
#26Two more tips: * Ctrl-a to go to beginning of line * Ctrl-e to go to end of line
A lot of the Emacs shortcuts work in OS X (most of the system) as well as on Linux (bash and other users of readline).
So, in practical terms, this means you have 1 + n clipboards[1]. The main global GUI clipboard (using the command key), and then an app-specific clipboard (using the control key with Emacs bindings). As a developer, it is extremely helpful to have two clipboards in TextMate, for instance.
[1] Technically, the clipboard in OS X maintains a history (not sure what the limit is), but the OS X GUI only exposes the last cut/copied item.
Re: Quick tip for developers who use OS X
#27If you use Spotlight to find something and then want to see the file in Finder, Cmd+click the item in the Spotlight dropdown.
Edited from Cmd+shift+click due to note in child comment :-)
Re: Quick tip for developers who use OS X
#28 $ pbpaste | pbcopy
takes the current contents of the copy/paste buffer and removes color/font/background color rich formatting and puts just plain text back into the paste buffer.And of course pbcopy and pbpaste are also very useful on their own.
Re: Quick tip for developers who use OS X
#29OK, so for vim users with zsh: bindkey -v Now be happy, hit and, use ^ and $ but also f t and also ,;. You can copy/paste with dd, Y, etc...
Re: Quick tip for developers who use OS X
#30Osx terminal uses almost all of the emacs movement keys by default. Ctrl-a and ctrl-e are useful but I find the meta movement keys to be the most helpful. (usually alt or ESC) Meta-f jump forward a word Meta-b jump backwards a word
The shortcuts also work in every text field in the OS.