Sublime Forum

Delimiter Configuration & Column Selection

#1

Hello

I am sorry if this has been discussed before. What’s the easiest way using two-button mouse in Windows 11 to perform column selection in Sublime Text? Secondly, what is the way to configure or modify delimiter characters? If I see an IPv4 address such as 192.168.100.100 and I want to double-click anywhere on it to select all I need to remove the “dot” from the delimiter configuration.

Thanks

0 Likes

#2

If using mouse is crucial, customized sublime-mousemap would be required to rebind the command from button3 to something else.

"word_separators" setting.

0 Likes

#3

Hello @deathaxe

Thanks for the reply. I will check the setting for word delimiters. For the column selection, is there a default way? For example in Notepad++ you can press ALT key and use the left mouse button to perform column or block selection. The ALT key has to be kept pressed throughout.

0 Likes

#4

Can anyone explain the first part? “./\()”

// Characters that are considered to separate words
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",

// Characters that are considered to separate sub-words
"sub_word_separators": "_",
0 Likes

#5

The default is pressing and holding middle mouse button. If that’s not present, default mouse bindings need to be customized. To do so, run Preferences: Mouse Bindings from command palette.

0 Likes

#6

Great help @deathaxe Both are done so Notepad++ behavior by customizing mouse binding as below.

[
{
“button”: “button1”, “modifiers”: [“alt”],
“press_command”: “drag_select”,
“press_args”: {“by”: “columns”}
}
]

0 Likes