Split_selection_into_lines the command is not executed if it comes after other commands. Maby its need some “Args” or “Context”
In the past i have same problem with command Select (its just pressing enter), and the solution was args or context after command.
"args": {“select”: true} or “context”: "window"
Without them command doesn’t work. maby the same problem is with split_selection_into_lines command.
The Plugins i used to command select_until
https://packagecontrol.io/packages/SelectUntil
{"caption": "select_until: run_multiple_commands",
// "keys": ["super+f1"],
"command": "run_multiple_commands",
"args": {"commands": [
{"command": "select_until", "args": {"extend": true } },
{"command": "insert_snippet","args": {"contents": "/(\\b.*)([\\r\\n] .*|\\b.*)+((?:\\d+\\.)? +)*/"}},
{"command": "select", "args": {"select": true}},
{"command": "split_selection_into_lines"},
]}}
// the same try in chain and multicommand plugins
{ "command": "chain", "caption": "select_until: chain",
// "keys": ["super+f1"],
"args": {
"commands": [
["select_until", {"extend": true },],
["insert_snippet", {"contents": "/(\\b.*)([\\r\\n] .*|\\b.*)+((?:\\d+\\.)? +)*/"},],
["select", {"select": true}],
["split_selection_into_lines"],
]}},
{"caption": "select_until: multicommand",
// "keys": ["super+f1"],
"command": "multicommand",
"checkbox": true,
"args": {
"commands": [
{"command": "select_until", "args": {"extend": true } },
{"command": "insert_snippet","args": {"contents": "/(\\b.*)([\\r\\n] .*|\\b.*)+((?:\\d+\\.)? +)*/"}},
{"command": "select", "args": {"by": "lines", "forward": true, }, "context":[{ "key": "overlay_visible", "operator": "equal", "operand": true }]},
{"command": "split_selection_into_lines"},
]}},
can somebody help with this?