simple-clone icon indicating copy to clipboard operation
simple-clone copied to clipboard

ST3: Disabling keybindings doesn't work

Open pmorch opened this issue 12 years ago • 6 comments

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.

pmorch avatar Jun 19 '13 12:06 pmorch

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.

mikefowler avatar Jun 19 '13 23:06 mikefowler

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

ddauer avatar Nov 03 '13 09:11 ddauer

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

artivilla avatar Nov 07 '13 01:11 artivilla

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!

mikefowler avatar Nov 07 '13 05:11 mikefowler

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

fhemberger avatar Mar 07 '14 11:03 fhemberger

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 } } ]

karlobermeyer avatar Sep 10 '16 23:09 karlobermeyer