How to search the search list

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
enze
Posts: 8
Joined: 31 Mar 2022 14:05

How to search the search list

Post 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? :oops: Please tell me how to search the search list in XYPLORER :?:

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to search the search list

Post by highend »

"Search list"?

F12 = Show info panel
Use the "Find Files" tab?
One of my scripts helped you out? Please donate via Paypal

enze
Posts: 8
Joined: 31 Mar 2022 14:05

Re: How to search the search list

Post by enze »

I guess Google Translate didn't convey the idea of ​​my questions :biggrin:
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 :lol:

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to search the search list

Post 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...
One of my scripts helped you out? Please donate via Paypal

enze
Posts: 8
Joined: 31 Mar 2022 14:05

Re: How to search the search list

Post by enze »

Thank you very much!

Horst
Posts: 1331
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How to search the search list

Post 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"
Windows 11 Home, Version 25H2 (OS Build 26200.7171)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1400a (x64), Everything Toolbar 2.1.0, Listary Pro 6.3.6.99

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to search the search list

Post by admin »

It's long been possible. See Help on "Search In List".

enze
Posts: 8
Joined: 31 Mar 2022 14:05

Re: How to search the search list

Post 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..."

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to search the search list

Post 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...
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1331
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How to search the search list

Post 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.
Windows 11 Home, Version 25H2 (OS Build 26200.7171)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1400a (x64), Everything Toolbar 2.1.0, Listary Pro 6.3.6.99

enze
Posts: 8
Joined: 31 Mar 2022 14:05

Re: How to search the search list

Post 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.
Last edited by enze on 25 Dec 2024 12:31, edited 2 times in total.

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to search the search list

Post 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.
Attachments
SearchInListedItems.png
SearchInListedItems.png (4.62 KiB) Viewed 1154 times

Horst
Posts: 1331
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How to search the search list

Post 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 :D
But you must confirm, better would be a button in this dialog
and not hidden in the context menu of a button :biggrin:
Windows 11 Home, Version 25H2 (OS Build 26200.7171)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1400a (x64), Everything Toolbar 2.1.0, Listary Pro 6.3.6.99

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to search the search list

Post by admin »

Yep, but where? No space.

enze
Posts: 8
Joined: 31 Mar 2022 14:05

Re: How to search the search list

Post 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 :shock: Thanks :D
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 :appl: It's worth talking 8)

Post Reply