Adding items to the list which is already built by goto

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zakhar
Posts: 148
Joined: 08 Sep 2010 21:13

Adding items to the list which is already built by goto

Post by zakhar »

Hello, dear XYplorer Community!

In a script after running a search like

Code: Select all

goto "C:\Folder\? /d";
I take the search results by listpane(),
identify some folders within this script by gettokenindex() and gettoken().
For this identified folders, which are already displayed in the list built by goto, I would like
to add [to the list, built by goto]/[to the search results of goto]
the previous and the next folders.
The problem is not the definition of previous/next folders,
but the adding this folders to the list, which is already built by goto in the current tab.
Is this adding possible without destroying of the list built by goto?

highend
Posts: 13260
Joined: 06 Feb 2011 00:33

Re: Adding items to the list which is already built by goto

Post by highend »

I would like
to add [to the list, built by goto]/[to the search results of goto]
the previous and the next folders.
No clue what that means

You can't manually add items to the search if the search didn't already find them
The only way is to use a paperfolder where you are in control of its content
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

zakhar
Posts: 148
Joined: 08 Sep 2010 21:13

Re: Adding items to the list which is already built by goto

Post by zakhar »

highend wrote: 17 Sep 2021 18:15 No clue what that means
Very simple:
Folders 1-5 are found by goto. The list content is:
1
2
3
4
5
6
. After this the next part of the script should add folders 5a and 5b to the list,
so that the list content would be:
1
2
3
4
5a
5
5b
6
. I think that the closest option is to open the found folders 1-5 in the tree
by goto and to add the folders 5a and 5b to the tree as well by goto,
but I wanted, that the search results are shown in the list.
highend wrote: 17 Sep 2021 18:15 You can't manually add items to the search if the search didn't already find them
Okay, thank you for your answer, highend.

highend
Posts: 13260
Joined: 06 Feb 2011 00:33

Re: Adding items to the list which is already built by goto

Post by highend »

Then make a paperfolder out of the current view, add the necessary folders to it and display that one afterwards...
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

zakhar
Posts: 148
Joined: 08 Sep 2010 21:13

Re: Adding items to the list which is already built by goto

Post by zakhar »

highend wrote: 17 Sep 2021 19:09 Then make a paperfolder out of the current view, add the necessary folders to it and display that one afterwards...
Yes, it works too.
And it shows directly what was desired and more over: paperfolder saves the results in a paperfolder,
so I can return to them after opening a folder...
(But here a paperfolder must be created... :roll: ) I did not want to use paperfolders, but I see that I must :)

Post Reply