recycles a tab in the source, if found. If not, a new tab is created in the source.
If the tab exists in the target but not the source, the same tab is created in the source.
Would there be a raw command that allows you to recycle a tab if it is found either in the source or in the target?
Looked but couldn't find this.
In that case, would you consider adding a findexistingdual that behaves like findexisting, except in a dual lister it will recycle an existing tab if it is found on either side, giving it focus?
I'm sure you have a huge list already, just a suggestion — seems like it could be useful in a number of situations (for people like me who are using commands but haven't yet explored the scripting interface).
What about calling it "GoRecycle" instead of "RecycleGo"?
That way all "Go" commands line up in the list of commands and its much easier to find "Go"-related functionality.
Another thing: The script behaves different for existing tabs/paths in left or right of a dual lister.
If I'm on the left side (has focus) and both sides have a tab with a path with potential to be recycled, it will bring the tab from the left side to the front, focus stays left and will not move over to the right (expected bahviour).
If I'm on the right side (has focus) and both sides have a tab with a path with potential to be recycled, it will choose the tab on the left side and give that focus. The behaviour of the command is not "mirrored", so to say and comes unexpected for this case.
@tbone To my ears GoRecycle might sound ambiguous, as in "Go to the Recycle Bin", but what do you think?
Let me know your thoughts, I don't have your "view from the mountaintop" of the Opus command landscape and fully trust your good judgment. If you think it's a better name I'll edit the thread on the scripting board. Also please feel free to take ownership of the script if you feel it deserves further versions — I've only glanced at it as I haven't studied the scripting interface. The non-mirrored aspect doesn't bother me (I might even like it, being more of a source-on-the-left kind of guy) but I can see how someone else could like to control that with a parameter.