SortBy
SortBy copied to clipboard
On Linux, shortcut `ctrl+shift+alt+u` is used to enter a Unicode character
I have recently installed your extension, but since then I could not use Ctrl+Shift+Alt+u shortcut to enter Unicode letters in Sublime Text. That shortcut (alongside with Ctrl+Shift+u, which does not work in ST, at least in ST3+) is used to enter Unicode characters on Linux.
Now I am able to disable a shortcut using (for example) a noop
command, but I am not able to restore the original behaviour (i.e. prior to asigning your command to that shortcut) without editing Default.sublime-keymap
(L68-78) in your repo.
Could your fix this issues please? :wink:
Hello,
The best thing you can do to remediate the issue with the binding is to unbind as you did with the noop
, but you have to rebind the action to another key combination.
Example
[
{
"keys": [
"ctrl+shift+alt+7"
],
"command": "srtbyli",
"args": {
"sort": "decimal",
"reversed": true
}
},
{
"keys": [
"ctrl+shift+alt+u"
],
"command": "noop"
}
]
You can add this JSON in the user key binds, if you want.
- Go to "Preference"
- Choose "Key bindings"; this will open a window with two panels.
- In the right window, there should be an empty JSON array (by default only)
- Copy the previous JSON
This will work, and gives you the option to change the key binds to your preferences.
The only thing I can do, i to remap the option to another combination only on Linux, but this cause more confusion than good, in my opinion; since the key binds are a mess, can be used by other plugins, ect.
I will add a new menu & add more documentation on how to remap the combinations.
The addition is now pushed ST3 & ST4 -> V1.3.0 ST2 -> V1.2.0
This will simplify the overriding of the key bindings and the best that I can do for this issue.
Link to the newer documentation: https://github.com/Doi9t/SortBy#change-the-key-binding-1
@Doi9t, I think I wasn’t clear enough. Those shortcuts are global/system-wide shortcuts on Linux to insert Unicode charactors. By setting them to noop
command, one cannot restore the behaviour, but merely disable them (i.e. nothing will be done when they are pressed. Therefore this isn’t a solution, no even a workaround.
I see only one option: change the default shortcut(s). Or don’t set any and let the user configure them.
As an alternative to not setting any keyboard shortcuts, is is possible in ST to have a package setting using which now could disable all the default package shortcuts, while keeping the Default.sublime-keymap
file?