Close Tab By Name ?
Re: Close Tab By Name ?
Thanks again Don, it's working great.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440
Re: Close Tab By Name ?
I have been having issues since this change was made, I was waiting to see if .0214 would resolve it but it hasn't, If I run this command
So to repro in fresh, in Pane 2, add a tab so there are 3, then run it with that tab open, it returns "Desktop" (first tab), if you then rename that 3rd tab and move it to first position and rerun the script, it will then give that error.
Below is a basic repro script for fresh if needed, it demonstrates that the correct tabs data isn't being returned, by renaming tab1 when active tab is tab2, and then also shows the error afterwards.
Additionally, and I think it will be resolved when the aforementioned issue is because it only started in this same timeframe, but I am seeing this tab color matching issue again, I assume because the wrong tab ID is being reported to XY.
e tab("get", "caption");
I get the below error. I tried to repro in fresh and at first I couldn't, but it made me notice that XY isn't returning the correct tabs data, it always returns the first tab.So to repro in fresh, in Pane 2, add a tab so there are 3, then run it with that tab open, it returns "Desktop" (first tab), if you then rename that 3rd tab and move it to first position and rerun the script, it will then give that error.
Below is a basic repro script for fresh if needed, it demonstrates that the correct tabs data isn't being returned, by renaming tab1 when active tab is tab2, and then also shows the error afterwards.
focus "P2"; tab("rename", "XY"); e tab("get", "caption");
Additionally, and I think it will be resolved when the aforementioned issue is because it only started in this same timeframe, but I am seeing this tab color matching issue again, I assume because the wrong tab ID is being reported to XY.
Re: Close Tab By Name ?
e tab("get", "caption","23");
works whenever you provide the index of the tab, but not when it's supposed to get the current tab caption (i.e., no index provided).Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440