ChainOfCommand
ChainOfCommand copied to clipboard
Pause command until new window opens
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"],
]
}},