Apologies, it’s not a great question title, and I may struggle with defining the question…
The behaviour I’d like: to save the contents of a couple of tabs ( or maybe all the tabs open in a pane depending on what’s available) and then build one of them, preferably the tab that is currently active, and return to that active tab.
The command I have at the moment always saves tab 0 and tab 1 and then returns to tab 0, but I’d like to return to the tab that was active when I did the build (maybe in a different pane, or perhaps there are four tabs open in the first pane for example). What this seems to need is some way of saving my starting state (in terms of panes and active tab), do what I want to do (save build etc), and then go back to my original state ie back to the tab that was active .(obvs post saving and building)
Currently, the keybinding changes focus, saves, builds, but then I’ve got no way of going back to my original focus, and have to change back manually (if it isn’t the right focus by chance…
Here's my key binding
{
"keys": [
"alt+b"
],
"command": "multicommand",
"args": {
"commands": [
{
"command": "save"
},
{
"command" : "focus_group", "args": { "group": 0 }
},
{
"command": "select_by_index", "args": { "index": 0 }
},
{
"command": "save"
},
{
"command": "select_by_index", "args": { "index": 1 }
},
{
"command": "save"
},
{
"command": "build"
},
{
"command": "select_by_index", "args": { "index": 0 }
}
]
}
},
Here’s my Pseudo key binding
{
“keys”: [
“alt+b”
],
“command”: “multicommand”,
“args”: {
“commands”: [
{
"command": “store current focus group value” args "User_Val"
},
{
“command” : “focus_group”, “args”: { “group”: 0 }
},
{
“command”: “select_by_index”, “args”: { “index”: 0 }
},
{
“command”: “save”
},
{
“command”: “select_by_index”, “args”: { “index”: 1 }
},
{
“command”: “save”
},
{
“command”: “build”
},
{
"command": “select_by_index”, “args”: { “index”: User_Val}
}
]
}
* }*,
Is this as clear as mud ? If so more than happy to clarify (if I can) !
Regards Lozminda
Ps Sorry all the formatting’s gone a bit weird, don’t seem to be able to do bold and italic together, am always having these troubles on this forum, I’ll see if I can find my old post and try and sort…