Question

I'm trying to configure ST3 keybindings to reindent whole text, save file and refresh the browser on ctrl+s. I'm using Chain of Command and Browser Refresh plugins, but the problem is I don't know how to pass commands with arguments, so that the reindent command would affect whole text instead of one line only. "single_line" : false seems to be ignored.

"keys": ["ctrl+3"], 
    "command": "chain", 
    "args": {
        "commands": [
        ["reindent",{"context": "window", "args": {"single_line": false}}],
        ["browser_refresh"]
        ]
    }
Was it helpful?

Solution

I've made it.

"keys": ["ctrl+s"], 
    "command": "chain", 
    "args": {
        "commands": [
        ["reindent",{"single_line": false}],
        ["browser_refresh"]
        ]
    }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top