Sublime Forum

Selecting subword not working

#1

Hi
Im rather new to using sublime and have not been able to get the select subword feature working.

If I do “alt+right” I will correctly move to the next subword
If I do “shift+right” I will correctly select the next character.
However when I try “alt+shift+right” I do not select the next subword but rather just move to it (as “alt+right” works).

In the keybindings I found
{ “keys”: [“alt+shift+left”], “command”: “move”, “args”: {“by”: “subwords”, “forward”: false, “extend”: true} }
but I dont know why its not working

Additional information, Im using ubuntu 18.04 and the “ctrl+shift+right” selects the next word correctly.

0 Likes

#2

I would try to check whether the correct commands are executed:

  1. open the ST console ctrl+`
  2. write sublime.log_commands(True)
  3. try out the keybinding and check the console
0 Likes

#3

When trying this, using “alt+shift+right” it give me the output

command: move {“by”: “subword_ends”, “forward”: true}

which is the “alt+right” command.

When running with sublime.log_input(True) it show me
key evt: alt+right
which I guess mean it simply doesn’t pick up the shift key :confused:

0 Likes

#4

I now realized that alt+shift was set as my shift keyboard layout which I guess cause sublime to not pick up the alt+shift command, thanks for the help figuring this out.

2 Likes