Live Filtering Search Results

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Live Filtering Search Results

Post by MBaas »

I searched for a specific file and found it 39 times in different folders.
Now I wanted to reduce that number by Live Filtering the list. The idea was to type "core" (directly into the filter box) and see a list of all matches which had core in the path name - it seemed intuitive ;)
04-06-_2020_16-58-59.png
04-06-_2020_16-58-59.png (198.91 KiB) Viewed 1982 times
As soon as I typed "c" into the Live Filter, the search started all over. I waited 45 seconds and pressed "o". Search started again.

Got this:
04-06-_2020_17-03-36.png
04-06-_2020_17-03-36.png (207.6 KiB) Viewed 1982 times
Problems/Questions:
  • why does LiveFiltering trigger a repeated search instead of just filtering the results? Did I miss any options to control this behaviour?
  • waiting for the repeated search to complete was neccessary. When I just typed ahead w/waiting, I got a mismatch of filter vs. display:
    04-06-_2020_17-09-55.png
    04-06-_2020_17-09-55.png (203.87 KiB) Viewed 1982 times
    Have I missed any config-options that could be used to avoid this re-searching or to allow type-ahead?
  • when filtering "correctly", I ended up with this:
    04-06-_2020_17-12-34.png
    04-06-_2020_17-12-34.png (7.79 KiB) Viewed 1982 times
    So obviously the LiveFilter is only based on names, not on paths. Is there any way to perform a search like this one with the tools we currently have? I tried searching for "*core*\System.IO.Compression.ZipFile.dll" instead, but that didn't match anything.
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

What I would do: Write a mini script that does your search via quicksearch() and feeds the result into paperfolder().
You can live filter that one afterwards...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Really? I had tried to copy the results into a paper-folder and then wanted to apply a LiveFilter - but I didn't work (empty list again).
It seems the LiveFilter-box just does not search foldernames :(
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

Why not? Anything that I type into the LFB affects folders as well...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Hmm, so maybe there is a non-obvious setting somewhere which affects the behaviour...

I hope this .MP4 is accessible - it is a recording of me filtering the paper-folder...
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

I guess you are talking about the path column.

Here is a view that is switched to branch view, with live filtering:
1.png
1.png (68.07 KiB) Viewed 1954 times
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Oh, "Branch view" - that idea didn't occur to me. So I was very happy...for the first two letters. As soon as I typed "r", I was back to no matches. And my screenshot also that only hightlights matches in the filename:
04-06-_2020_19-26-10.png
04-06-_2020_19-26-10.png (196.57 KiB) Viewed 1952 times
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

But you see that I display folders in the list view, right?

I just used paperfolder("Search result", get("ItemsPathNames"), , "nl"); with the search results visible (so that the search isn't triggered again)...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Yes, I saw that. But I did not see whether it highlighted any matches in this (small) column.

I had copied my search-results info a new paper-folder, then switched it to branch-view and tried to filter.

I now repeated the search, then executed the command you showed, a new paper folder was opened. I switched it to "Branch mode", started typing "co" and got an empty list when I reached "cor" - even though there are Paths that contain the term "core".
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

But I did not see whether it highlighted any matches in this (small) column.
It doesn't do that in the path column. Hence the folders in the name...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Aaaah! My brain is a bit slow today, sorry! :oops:

So I tried Config | "Find Files & Branch View" | Default branch view type: "Files and folders" (I had "files only")
But still..the folders are not shown as separate items like in your screenshot. Which setting am I missing?
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

Don't search for files only?...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Hmm, I'm sorry, but I don't see how to not search for files only - I mean, which setting are talking aboutg? "Name & Location" > Path - checked.

I know you said in the beginning you'd search with quicksearch() - but I don't see how I could pass results from qs() to a paperfolder in a way that it would then show the parent-folder in branch-view.
(You're aware of my use case, right? search "System.IO.Compression.ZipFile.dll" and filter by "core")
______________________________________________
Happy user ;-)

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

Re: Live Filtering Search Results

Post by highend »

At least possible with the last part of the folder where files are found (but without branch view here!):

Code: Select all

    $a = report("{fullpath}<crlf>{fullname}<crlf>", quicksearch("System.IO.Compression.ZipFile.dll", , , "s"));
    paperfolder("Search result", $a, , "nl");
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: Live Filtering Search Results

Post by MBaas »

Ok, thanks.
But still...it would be nice if Don could extend the LiveFilter to use all visible fields (or selected fields) or at least the full path - I think this should be doable via GUI ;)
______________________________________________
Happy user ;-)

Post Reply