Live data from Hacker News

Quick tip for developers who use OS X

news.ycombinator.com

71–80 of 406 posts

Re: Quick tip for developers who use OS X

#71
post #38

A 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 ?

yes.

Re: Quick tip for developers who use OS X

#73
post #28

Useful when copy/pasting things to share with other people in email and such: $ 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.

Be warned, though, that these do not work inside of a tmux session without special steps being taken. I believe that they work in screen, but tmux requires some additional work.

Re: Quick tip for developers who use OS X

#75

A 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 :-)

Under Konsole/Yakuake (KDE) its: Contextmenu -> Open Link

Re: Quick tip for developers who use OS X

#77

OK, 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...

set -o vi does the trick for vim. Most vi commands work, but when you type v this will open vi to edit your command line, in case you feel any command is missing.

I've b een using vi-mode in the shell for a while,but haven't been able to get the v behavior you described. Did you have to do anything to make that behave?

Re: Quick tip for developers who use OS X

#79
You can also CMD+click and drag (or double click as long as it's not a URL, which will open) to add to the text selection (like multiple cursors in Sublime Text 2).

Also, Option+click and drag gives you column selection mode.

Post reply on HN