Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Linux, shortcut ctrl+shift+alt+u is used to enter a Unicode character #22

Open
tukusejssirs opened this issue Jul 4, 2021 · 4 comments

Comments

@tukusejssirs
Copy link

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? 😉

@Doi9t
Copy link
Owner

Doi9t commented Jul 4, 2021

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.

  1. Go to "Preference"
  2. Choose "Key bindings"; this will open a window with two panels.
  3. In the right window, there should be an empty JSON array (by default only)
  4. 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.

@Doi9t
Copy link
Owner

Doi9t commented Jul 4, 2021

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 Doi9t closed this as completed Jul 4, 2021
@tukusejssirs
Copy link
Author

tukusejssirs commented Jul 4, 2021

@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.

@Doi9t Doi9t reopened this Jul 4, 2021
@tukusejssirs
Copy link
Author

tukusejssirs commented Jul 9, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants