Sublime Forum

ST4: column selection shortcuts don't work

#1

Kubuntu 21.04 / Sublime Text 4 build 4107

My custom shortcuts for column selection from ST3:

// Column selection
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} },

don’t work, neither do the default ones:

{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
0 Likes

#2

If you open the sublime console and enter sublime.log_input() and sublime.log_commands() and then use the keys, do you see the keys you’re pressing being logged and the select_lines commands being logged?

0 Likes

#3

I see just the key events:

key evt: ctrl+alt+down
key evt: ctrl+alt+up

On my other machine I also see invoked commands:

command: select_lines {"forward": false}

0 Likes

#4

Hmm… the logs indicate that Sublime is seeing the keys, so presuming that the bindings are available I don’t see any obvious reason why it wouldn’t also try to execute the command.

Do they also not work in Safe Mode?

0 Likes