Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remap Sublime Text 2 Ctrl-Q to stop accidental quit

Tags:

sublimetext2

I keep hitting Ctrl+Q in Sublime Text 2. Can I remap the Quit command to so that this key binding doesn't work or requires i.e. Ctrl+Q+Q?

I've tried mapping it to null -

[
    { "keys": ["ctrl+q"], "command": "" }
]
like image 318
kerno Avatar asked Apr 18 '13 12:04

kerno


1 Answers

The easiest way to do this is to use Package Control to install Maybs Quit, which remaps Ctrl+Q to ask whether you want to quit, close the view or window, save or do nothing:

enter image description here

You can then quit by typing Ctrl+Q followed by Enter.

like image 158
deltab Avatar answered Oct 10 '22 01:10

deltab