How to find existing tab with specific name (instead of path)

for example, i want to open selected folder in a tab named "abc", if that tab exist, use it,or open new tab and name it as "abc",
here is my command, but NEWTAB=findexisting does not work, it will not respect tab name but the path
Go PATH="{filepath$}" NEWTAB=findexisting OPENINDUAL TABNAME "abc"

You'll need a script that reads the tab names via displayed_label.

1 Like

@lxp
thank you very much!
by the way ,Is it possible to achieve it through standard do command ?

Not that I'm aware of, that's why I said a script is needed.

A FAYT script is probably best for this, if you want something similar to the built-in tab-searching mode, but where it searches a different attribute of the tabs.

Examples can be found here: Topics tagged fayt

would you please add a new option findexistinglabel for newtab, so i can reuse a existing tab with specified label name?