Live data from Hacker News

⌘Q is too damn close to ⌘W

squishtech.posterous.com

41–50 of 113 posts

Re: ⌘Q is too damn close to ⌘W

#41
post #13
post #7

Do people really not know that Chrome has an option to reopen itself with the tabs you had open last? Preferences > Basics > On Startup > Reopen the pages that were open last.

Well yes, but if you have 20+ tabs open in a couple of windows, it's disruptive and time consuming to close and reopen all of them.

I forget where I saw this tip, but after making this mistake several times I remapped command-Q in Chrome to the "Zoom" command. (Keyboard control panel -> Keyboard Shortcuts -> Application Shortcuts). It's already saved me lots of time. And of course, any harmless menu command will work in place of "Zoom."

Edit: after I RTFA, I see this is much like what the article suggested. The only real difference is that my approach prevents you from quitting from the keyboard at all.

Re: ⌘Q is too damn close to ⌘W

#42

I will give plenty of karma to anyone who can tell me an easy way of doing something even remotely similar in Linux. I'd love it.

On Ubuntu the first thing I do with a new install is rebind quit to Command W. (System -> preferences -> keyboard shortcuts.)

If you're using Firefox you just make sure browser.warnOnQuit is set to True (out of the box, it's set to true.)

As far as Chromium goes, near as I can tell ctrl-Q does not work at all, which is something Firefox would do well to imitate.

Re: ⌘Q is too damn close to ⌘W

#43

you just changed one of the consistent features of all os x applications, how to close applications and close windows/tabs of applications. for some reason i always use the finger motion/press of thumb on left ⌘-key + index finger on q key to quit things and i've never experienced the ⌘q ⌘w issue.

I think squishtech's first clue that they changed one of the consistent features of all OSX applications was when they went to the control panel and changed the feature.

I think it'll be OK.

Re: ⌘Q is too damn close to ⌘W

#46
My real problem is that M-w is too close to ⌘-w, especially when I have meta mapped to ⌘ on my external keyboard.

I would really love to have a consistent set of shortcuts across emacs and everything else I use.

Re: ⌘Q is too damn close to ⌘W

#47
The reason it's not normally a problem is that if you're working on a document and you hit ⌘Q (or ⌘W for that matter) you will be prompted to save your changes.

However, this does become a problem in web browsers and file browsers where there are no changes to save.

Apparently in the early days of OS X the NEXTSTEP guys wanted to add a ⌘Q shortcut to Finder, which would log you out of OS X. As the story goes, some people at Apple really hated that idea, so after some lively debate they settled on ⌘⇧Q instead. (As a bonus, it's now a global shortcut, so you don't have to be in Finder to use it.)

Similar problem with web browsers. You can give it a different shortcut, or you can enable a prompt to warn when closing multiple tabs. Most people opt for the latter.

Re: ⌘Q is too damn close to ⌘W

#49
post #45

C-x C-c is too close to C-x C-b.

Quitting emacs should be a fairly rare task; just remap C-x C-c to something harder to hit by accident in your .emacs file. (I would do this myself, but I keep putting it off.)

Oh, I do. Same with C-z as mentioned below. When I'm in a terminal-based session, I keep C-x C-c and C-z around. When I'm in my main X-based session, C-z is zap-to-char and C-x C-c is bury-buffer.

Re: ⌘Q is too damn close to ⌘W

#50

I will give plenty of karma to anyone who can tell me an easy way of doing something even remotely similar in Linux. I'd love it.

On Ubuntu the first thing I do with a new install is rebind quit to Command W. (System -> preferences -> keyboard shortcuts.) If you're using Firefox you just make sure browser.warnOnQuit is set to True (out of the box, it's set to true.) As far as Chromium goes, near as I can tell ctrl-Q does not work at all, which is something Firefox would do well to imitate.

Chromium uses Shift+Ctrl+Q to exit.
Post reply on HN