Sublime Forum

Ctrl+alt+up/down in linux

#1

for linux the combination “ctrl+alt+up\down” is default for showing open windows and workspace. how can I override it for sublime? to make multiselecting lines? I founded this: Shift + Alt + down key combination
but it doesn’t work. this code:

[
    { "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
    { "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
    { "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } },
    { "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } },
]

in .sublime-keymap don’t give any action. by the way, after input

sublime.log_commands(True)
sublime.log_input(True)

in console I see something like that:

key evt: right
command: move {"by": "characters", "forward": true}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: down
command: move {"by": "lines", "forward": true}
command: drag_select {"event": {"button": 1, "x": 347.5, "y": 547.5}}

I don’t think it’s very helpful.

and the middle button of mouse also not working. please, help.

0 Likes

#2

https://unix.stackexchange.com/questions/394143/how-to-disable-gnome-ctrlaltdown-and-ctrlaltup-shortcut

0 Likes