Page 1 of 2

Live Filtering Search Results

Posted: 04 Jun 2020 17:24
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
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
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
    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
    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.

Re: Live Filtering Search Results

Posted: 04 Jun 2020 17:37
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...

Re: Live Filtering Search Results

Posted: 04 Jun 2020 17:46
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 :(

Re: Live Filtering Search Results

Posted: 04 Jun 2020 18:15
by highend
Why not? Anything that I type into the LFB affects folders as well...

Re: Live Filtering Search Results

Posted: 04 Jun 2020 19:04
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...

Re: Live Filtering Search Results

Posted: 04 Jun 2020 19:12
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

Re: Live Filtering Search Results

Posted: 04 Jun 2020 19:26
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

Re: Live Filtering Search Results

Posted: 04 Jun 2020 19:30
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)...

Re: Live Filtering Search Results

Posted: 04 Jun 2020 19:56
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".

Re: Live Filtering Search Results

Posted: 04 Jun 2020 19:58
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...

Re: Live Filtering Search Results

Posted: 04 Jun 2020 20:19
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?

Re: Live Filtering Search Results

Posted: 04 Jun 2020 20:35
by highend
Don't search for files only?...

Re: Live Filtering Search Results

Posted: 04 Jun 2020 20:58
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")

Re: Live Filtering Search Results

Posted: 04 Jun 2020 21:24
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");

Re: Live Filtering Search Results

Posted: 05 Jun 2020 09:34
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 ;)