Page 1 of 2
How to search the search list
Posted: 23 Dec 2024 15:37
by enze
I've looked through the help file, searched the forum, and searched for this option in the program itself - I didn't find it. ...and I don't know if my search was weak?

Please tell me how to search the search list in XYPLORER

Re: How to search the search list
Posted: 23 Dec 2024 15:40
by highend
"Search list"?
F12 = Show info panel
Use the "Find Files" tab?
Re: How to search the search list
Posted: 23 Dec 2024 17:55
by enze
I guess Google Translate didn't convey the idea of my questions
Let's say I have 1000 files that I search for the phrase "xyz". I get a list of results of results. Now I want to search this list to narrow down the number of results to those that contain "qwer" in addition to the phrase "xyz". Can I do this in XYPLORER?
I hope Google Translate understood me

Re: How to search the search list
Posted: 23 Dec 2024 18:41
by highend
Not via the graphical user interface...
But you could use a script to do that.
First, do your normal search via the GUI
While the list of found files is visible, execute this script (e.g. after putting it inside a button, assigned a keyboard shortcut to it, etc.):
Code: Select all
$matches = report("{fullname}<crlf>");
end (!$matches), "No item(s) in current list, aborted!";
$input = input("Enter content search term:", , , "e");
if ($input) {
$find = quicksearch("/contents=" . '"' . $input .'"', $matches, , "s");
end (!$find), "No file(s) found...";
tab("new", "vi:" . $find);
}
It will ask you for the search string and it will open a new tab with a list of all the files that matches it...
Re: How to search the search list
Posted: 23 Dec 2024 18:56
by enze
Thank you very much!
Re: How to search the search list
Posted: 24 Dec 2024 13:24
by Horst
I would call it incremental search.
It should be a standard function of XY search, without any scripting.
Everything does it as default, just by adding more terms in the search field.
Total Commander calls it "Search in found files/folders"
Re: How to search the search list
Posted: 24 Dec 2024 13:51
by admin
It's long been possible. See Help on "Search In List".
Re: How to search the search list
Posted: 24 Dec 2024 17:47
by enze
I've done some tests and unfortunately I can't get this script to work.
I've added it to a custom button and I'm running it in the search results list. However, all I get is the message: "No files(s) found..."
Re: How to search the search list
Posted: 24 Dec 2024 17:49
by highend
What was the initial search via the gui?
What did you enter when asked for the search term in the script?
Provide some files that were found via the gui search...
Re: How to search the search list
Posted: 24 Dec 2024 18:10
by Horst
admin wrote: ↑24 Dec 2024 13:51
It's long been possible. See Help on "Search In List".
No, it's not.
I don't want to Search in a List as described in the help.
I want to search in the results from a previous search.
This is what highend's script above does.
Re: How to search the search list
Posted: 25 Dec 2024 10:17
by enze
highend wrote: ↑24 Dec 2024 17:49
What was the initial search via the gui?
What did you enter when asked for the search term in the script?
Provide some files that were found via the gui search...
For testing purposes, I created a new folder in which I created 5 text files. All of them had a common default name (each one had a different suffix "-01", "-02"...). In two of them I added the word "monitor" to the name, in one "keyboard". Searching through the gui I entered "monitor" - in the results I got 2 files. Searching through the script in the results I entered "keyboard" but I got the message "No file(s) found..." and the results on the list did not change. I am attaching the resulting screen.
Re: How to search the search list
Posted: 25 Dec 2024 10:44
by admin
Horst wrote: ↑24 Dec 2024 18:10
admin wrote: ↑24 Dec 2024 13:51
It's long been possible. See Help on "Search In List".
No, it's not.
I don't want to Search in a List as described in the help.
I want to search in the results from a previous search.
This is what highend's script above does.
You can do this easily. When the results of a previous search are displayed, right-click the
Find Now button and click
Search in Listed Items.
Re: How to search the search list
Posted: 25 Dec 2024 10:51
by Horst
admin wrote: ↑25 Dec 2024 10:44
You can do this easily. When the results of a previous search are displayed, right-click the
Find Now button and click
Search in Listed Items.
Thanks, this is the solution
But you must confirm, better would be a button in this dialog
and not hidden in the context menu of a button

Re: How to search the search list
Posted: 25 Dec 2024 10:52
by admin
Yep, but where? No space.
Re: How to search the search list
Posted: 25 Dec 2024 11:03
by enze
admin wrote: ↑25 Dec 2024 10:44
Horst wrote: ↑24 Dec 2024 18:10
admin wrote: ↑24 Dec 2024 13:51
It's long been possible. See Help on "Search In List".
No, it's not.
I don't want to Search in a List as described in the help.
I want to search in the results from a previous search.
This is what highend's script above does.
You can do this easily. When the results of a previous search are displayed, right-click the
Find Now button and click
Search in Listed Items.
Oh! That will solve my problem

Thanks
As
Horst says it would be really nice if this functionality was more visible, but now I will know how to use it.
Thanks to everyone for the help

It's worth talking
