Page 1 of 1

Reuse tab via script made more accessible

Posted: 22 Nov 2021 04:33
by jupe
Now it is pretty easy to script up something to look through the open tabs and if a tab exists switch to it if it doesn't then open a new tab (and even easier if overwriting curtab), but I think it is a fairly commonly wanted thing to do and since you recently made the GUI version of reusing a tab more radical, I think a matching scripting version would be useful, I am imagining something like this:

Code: Select all

 tab("reuse", <xypath>); // IF TAB EXISTS (IN CURRENT PANE) SWITCH TO IT ELSE OPEN IN NEWTAB
Low prio, just a suggestion, not a wish.