Sucks that it doesn't work in iTerm2.
Quick tip for developers who use OS X
61–70 of 406 posts
Re: Quick tip for developers who use OS X
#62Sucks that it doesn't work in iTerm2.
Re: Quick tip for developers who use OS X
#63A new one for me I accidentally found the other day.. If 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 :-)
isn't it just Cmd+click ?
Re: Quick tip for developers who use OS X
#64 $ open filename.png
$ open .
$ open -e filename.txt
$ open -a Pixen filename.png
The first command will open the file with the default application.Open . will open the current directory in finder, which I find very helpful.
The -e flag will open the file in textedit.
The -a will open the file in the given application name.
Re: Quick tip for developers who use OS X
#65Tip: Real hackers don't use a mouse. /s
... so do they prefer a track ball or TrackPoint (or some sort of Minority Report gestures-based system)? /s
Re: Quick tip for developers who use OS X
#66Osx 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 not emacs, it's GNU Readline (or likely some BSD readline given apple and the GPL) http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html . The shortcuts also work in every text field in the OS.
Re: Quick tip for developers who use OS X
#67Osx 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 not emacs, it's GNU Readline (or likely some BSD readline given apple and the GPL) http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html . The shortcuts also work in every text field in the OS.
Re: Quick tip for developers who use OS X
#68Works in iTerm too.
Re: Quick tip for developers who use OS X
#69mdfind to get Spotlight results in shell. Also, iTerm is a great Terminal replacement, if you haven't tried it.
Re: Quick tip for developers who use OS X
#70Another really useful command is the open $ open filename.png $ open . $ open -e filename.txt $ open -a Pixen filename.png The first command will open the file with the default application. Open . will open the current directory in finder, which I find very helpful. The -e flag will open the file in textedit. The -a will open the file in the given application name.