Page 1 of 1

get("curtabidx", pane=a|i|1|2) retrieving index of active tab in pane

Posted: 15 Dec 2022 14:40
by roemer_m
If there are more than one tab in pane are open with identical path a script can't get correct index position of currently active tab. Searching for position of tab in pane via get("tab","|","a") is no solution because path criteria is not unique to get the index of actual active tab in pane.
I'm trying to open search results in paperfolders nextby to active tab and therefore I need an index to apply newly created tabs in ordered manner at left or right of active tab position.

Re: get("curtabidx", pane=a|i|1|2) retrieving index of active tab in pane

Posted: 16 Dec 2022 02:11
by jupe
Already possible, use this: tab("get", "index");

                  >>>>>> Moved topic to T&T Q&A

Re: get("curtabidx", pane=a|i|1|2) retrieving index of active tab in pane

Posted: 16 Dec 2022 14:08
by roemer_m
Oh - I was not aware of tab("get","index"). Thanks for the hint jupe.