sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
804 stars 39 forks source link

Allow user-defined hotkey to enter safe mode #3866

Open shardulbee opened 3 years ago

shardulbee commented 3 years ago

Problem description

I use the Option+ keys to launch or focus different applications with Hammerspoon. This means when I try to launch Sublime Text/Merge with Option+1 and Option+2, they open in safe mode.

Preferred solution

I'd like to be able to define my own key combination with which Sublime Text/Merge will open in safe mode. (ex. Ctrl + Option + Cmd)

Alternatives

Change my hotkey for app launching.

wbond commented 3 years ago

This is probably really more of a bug in that we are launching in safe mode even if other keys are pressed in addition to option.

That or we may not be able to solve it if the user is holding option, but only taps the other key in a key binding.

Either way, there won't really be a way to configure this since safe mode is triggered before we load any data from the data paths, which is where customization is stored.

shardulbee commented 3 years ago

Either way, there won't really be a way to configure this since safe mode is triggered before we load any data from the data paths, which is where customization is stored.

Good point!

That or we may not be able to solve it if the user is holding option, but only taps the other key in a key binding.

Generally, if I can tap alt + and release really quickly, sometimes I can avoid starting in safe mode. However, I never hold alt, tap the other key in the binding, and keep holding alt after releasing the secondary key. I always release all keys once both are pressed.