redefine control-x to cut selection or line

Post Reply
alusiani
Posts: 3
Joined: 07.02.2026 10:45

redefine control-x to cut selection or line

Post by alusiani »

Hi,

is it possible to redefine control-x to work as in vscode, i.e., if selection exists cut it, otherwise cut the current line?
main Alexey
Posts: 2990
Joined: 25.08.2021 18:15

Re: redefine control-x to cut selection or line

Post by main Alexey »

you can set (in user.json) option

"cut_line_if_no_sel":true,

it will be like in VSCode?
remember that user.json needs { } brackets on edges of text.
alusiani
Posts: 3
Joined: 07.02.2026 10:45

Re: redefine control-x to cut selection or line

Post by alusiani »

Thanks! It confirm that it works for me.
Post Reply