Live data from Hacker News

Quick tip for developers who use OS X

news.ycombinator.com

341–350 of 406 posts

Re: Quick tip for developers who use OS X

#341

Earlier quoted context omitted.

OK here's one. I press command-option esc to Force Quit an app. But how do I then close the Force Quit window (which stays on top of all other windows) without the mouse? Thanks to anyone who's figured this out.

>I press command-option esc to Force Quit an app why? command-Tab (switch between and show running apps) and command-Q (force quit) also you can use command w to close a window if really really want to go that route

If an application has hung, command Q won't work. Happens to me with Mail sometimes. Also, all the helpful suggestions to use Command Q to close the Force Quit window will work - thanks - unless you first command tab to another app. At that point, the Force Quite window becomes inaccessible from the keyboard (it has no entry in the command tab app switcher), even though the window itself is still sitting on top blocking view of other windows. At that point, I believe, it's back to the mouse.

Edit: Thanks arrrrg, just noticed your solution - alt command esc to reactivate the Force Quit window, then command W.

Re: Quick tip for developers who use OS X

#342
post #238

Earlier quoted context omitted.

Not to mention that the Mac community also pioneered keyboard driven launchers and Linguistic user interfaces like launchbar -> quicksilver -> Alfred. Even though I put a lot of effort into learning windows keyboard shortcuts it always frustrated me how difficult it was to use windows in situations where I didn't have a mouse, while I'd barely notice the same situation with a Mac.

OK here's one. I press command-option esc to Force Quit an app. But how do I then close the Force Quit window (which stays on top of all other windows) without the mouse? Thanks to anyone who's figured this out.

You press Esc

Re: Quick tip for developers who use OS X

#343

oo! As long as we're sharing our favourite terminal tips, here's mine: In your .bash_profile, add this line: alias imgsz='sips -g pixelWidth -g pixelHeight' sips stands for "scriptable image processing system"[1], and provides terminal users with a toolset for inspecting and manipulating images. The alias above is really useful for web developers who need a quick look at how big a given image is: $ imgsz logo.png /pa…

thank you!

Re: Quick tip for developers who use OS X

#345
post #52

Bash, running in your terminal, understands both the Emacs and the Vi commands. By default is Emacs, so you can C-a (control-a) for beginning of line, C-p to go back in command line history, or C-r to search it. I prefer the Vi mode, though. Add to your .bashrc set -o vi Then you can press escape to go from input mode to normal mode; there k will take you to the previous line in command line history, j to the next li…

Most text inputs in Mac OS support at least C-a and C-e too.

Re: Quick tip for developers who use OS X

#349
post #244
post #52

Bash, running in your terminal, understands both the Emacs and the Vi commands. By default is Emacs, so you can C-a (control-a) for beginning of line, C-p to go back in command line history, or C-r to search it. I prefer the Vi mode, though. Add to your .bashrc set -o vi Then you can press escape to go from input mode to normal mode; there k will take you to the previous line in command line history, j to the next li…

I use these settings in my .inputrc. The get me a few more commands and even the ability to escape using jj. set completion-ignore-case On set bell-style none set editing-mode vi $if mode=vi set keymap vi-command "gg": beginning-of-history "G": end-of-history set keymap vi-insert "jj": vi-movement-mode "\C-p": history-search-backward

I've been wanting to use 'jj' to enter normal mode on the command line for some time. This solution actually didn't work for me, but adding the following to my .zshrc did:

  bindkey -M viins 'jj' vi-cmd-mode

Re: Quick tip for developers who use OS X

#350
In MacTerm, command+option+click will move the terminal cursor in the same way by simulating keys. It also moves “up” or “down”, for applications such as text editors that understand vertical arrows. There is even a preference setting that attempts to move the cursor automatically to wherever you drag and drop text with the mouse.

(Note: I wrote MacTerm.)

Post reply on HN