Live data from Hacker News

Quick tip for developers who use OS X

news.ycombinator.com

81–90 of 406 posts

Re: Quick tip for developers who use OS X

#82
post #20

Two more tips: * Ctrl-a to go to beginning of line * Ctrl-e to go to end of line

A couple more: * ⌘ + ` (tilde key) to switch between different windows of your current application * ⌘ + l (lowercase L) in most web browsers to highlight the address bar

I'm always telling people about ⌘ + `, it makes navigating windows on OSX so easy.

Re: Quick tip for developers who use OS X

#84
post #19

Earlier quoted context omitted.

I use Vim and was unaware that this shortcut existed. Are there any other Emacs shortcuts which are useful in OSX?

Ctrl-K kill to end of line, so Ctrl-A Ctrl-K will clear a given field

And you can Ctrl-Y to paste the line you killed. This is a separate copy/paste buffer from the normal Cmd-C one, which can be nice.

Re: Quick tip for developers who use OS X

#85
post #72

Nobody seems to have posted this yet: python -m SimpleHTTPServer I'd recommend an alias like "serve". It basically puts the current directory online (binds to 0.0.0.0:8000).

Am I wrong to have long dismissed this as little more than an easter egg, or, at best, a toy server to test basic webpage functionality?

Re: Quick tip for developers who use OS X

#86

I have tried to use Terminal, but I just can't. The ability to highlight and automatically have the text in clipboard is such a crucial feature in my workflow that not having it even as an option is a deal breaker. Once I started with iTerm and built a config/flow around it, I can't go back. Thanks for the tip though! I didn't realize this worked in Terminal too. I'll keep it in mind the next time I'm forced to use i…

Command-shift-v pastes the current selection into Terminal (and anywhere else in OSX).

Re: Quick tip for developers who use OS X

#90

drag + drop files to terminal to get its location. I often do "cd " + dragon drop folder to get to that folder in terminal

There's a free app called Go2Shell that adds a button to finder to open the current directory in Terminal/iTerm. Also works great in conjunction with "open ."
Post reply on HN