ChainOfCommand icon indicating copy to clipboard operation
ChainOfCommand copied to clipboard

Pause command until new window opens

Open excetara2 opened this issue 9 years ago • 0 comments

I am trying to implement this and if I do it then it works fine which centers the definition at the top of the current buffer window. But if I use the chain of command it seems to not register I think because the window hasn't opened because sometimes the center commands run on the previous window.

{
    "keys": ["alt+."],
    // Force ability to bring up context menu
    "command": "chain",
    // "context": [ { "key": "selection_empty", "operator": "equal", "operand": true } ],
    "args": {
        "commands": [
             ["goto_definition"],
            ["sbp_center_view"],
            ["sbp_center_view"],
     ] 
    }},

excetara2 avatar Apr 19 '16 15:04 excetara2