Page 1 of 1
How to apply Live or Visual Filter to just the Path
Posted: 16 Feb 2021 14:12
by Jerry
Is there any way to apply the live or visual filter to just the path of files in the list? For example, I often have a search results list that I would like to then further filter by a pattern that just matches the paths of the files listed.
If the answer is currently no, I'd like to suggest it as feature, perhaps using some kind of flag or path: token.
Re: How to apply Live or Visual Filter to just the Path
Posted: 17 Feb 2021 10:52
by admin
It's clumsy but it works. Let's say you look for "blah" in the path, you can use this term:
It applies to the whole path including the file name.
Re: How to apply Live or Visual Filter to just the Path
Posted: 17 Feb 2021 15:36
by Jerry
admin wrote: ↑17 Feb 2021 10:52
It's clumsy but it works. Let's say you look for "blah" in the path, you can use this term:
Quite a handful to type in and not easy to remember! Also hard to apply and still keep the filter delay short, unless you paste in (especially with search results against many thousands of files, hundreds of thousands in my case.) Perhaps you can introduce a shorter equivalent? Something like /P that you added to Quick Search to enable full path searching in version v21.50.0124?
I was previously led to trying a workaround for this using Quick Search/Find Files with path matching (as in
viewtopic.php?p=185373), but being able to easily match the Live Filter against the path is more useful and quicker, especially with different matches for the same search results list.
Re: How to apply Live or Visual Filter to just the Path
Posted: 17 Feb 2021 15:40
by admin
By "just the path" you mean the path without the filename, right?
Re: How to apply Live or Visual Filter to just the Path
Posted: 17 Feb 2021 15:49
by Jerry
admin wrote: ↑17 Feb 2021 15:40
By "just the path" you mean the path without the filename, right?
Hmm, yes, at least in the typical situations I encounter with a search results list. I guess that would be different behavior from the /P switch in Quick Search/Find Files. And I suppose it would be necessarily different because otherwise the live filter matching against the full path (with filename) would interfere with the search result items unless you used a regular expression which complicates things. Maybe a lowercase /p?
Re: How to apply Live or Visual Filter to just the Path
Posted: 17 Feb 2021 16:04
by admin
I'm thinking about adding a "path:" selector.
Visual Filters already have selectors like "attr:" or "size:" that correspond to the list columns of the same name. So "path:" would correspond to the Path column (which has the path without the filename). It would be consistent within this paradigm, but yes, it would be different from the /P switch and the "Path" checkbox in Find Files.
Re: How to apply Live or Visual Filter to just the Path
Posted: 17 Feb 2021 16:11
by Jerry
admin wrote: ↑17 Feb 2021 16:04
I'm thinking about adding a "path:" selector.
Makes sense.
Re: How to apply Live or Visual Filter to just the Path
Posted: 18 Feb 2021 19:36
by Jerry
Just tried the new path: selector you added in version v21.50.0125. Works like a charm. Thanks!