mikefowler / simple-clone

A Sublime Text plugin for lightning-fast file cloning. Compatible with both ST2 and ST3.
28 stars 12 forks source link

ST3: Disabling keybindings doesn't work #8

Open pmorch opened 11 years ago

pmorch commented 11 years ago

I wanted to disable the "right" keybinding, but it doesn't work in ST3, even though the exact same procedure works for me in ST2.

I've created a $HOME/.config/sublime-text-3/Packages/User/SimpleClone.sublime-settings file (on Linux) containing

{ "disabled_keymaps": "all" }

But ctrl+shift+right still clones. Creating the exact same file for ST2 ($HOME/.config/sublime-text-3/Packages/User/SimpleClone.sublime-settings) works like a charm.

The only workaround I could use: Install the package in a directory and edit $HOME/.config/sublime-text-3/Packages/SimpleClone/Default (Linux).sublime-keymap to remove the binding manually.

mikefowler commented 11 years ago

Interesting. The solution to this isn't immediately apparent to me, but I'll investigate when I have some time. In the meantime if you discover a more elegant solution, feel free to send a pull request my way.

ddauer commented 11 years ago

Same issue here on OS X. Overriding the key bindings doesn't work...

artivilla commented 11 years ago

Yup, doesn't work. I'm using OS X Mavericks. Trying to disable the right key.

mikefowler commented 11 years ago

Thanks for reporting all. I'm fairly busy with other projects at the moment, so if anybody wants to take a shot at a bugfix I'll happily merge your pull request. Thanks!

fhemberger commented 10 years ago

PR #9 doesn't seem to fix the issue, had to extract the package and change Default (OSX).sublime-keymap manually.

karlobermeyer commented 8 years ago

When the { "disabled_keymaps": "all" } thing didn't work for me, with Sublime Text 3 on Max OS X 10.10.5, I was able to restore selection key bindings by going to Preferences -> Keybindings - User, and entering [ { "keys": ["shift+command+left"], "command": "move_to", "args": {"to": "bol", "extend": true } }, { "keys": ["shift+command+right"], "command": "move_to", "args": {"to": "eol", "extend": true } }, { "keys": ["shift+command+up"], "command": "move_to", "args": {"to": "bof", "extend": true } }, { "keys": ["shift+command+down"], "command": "move_to", "args": {"to": "eof", "extend": true } } ]