Filter not (always) resetting when changed

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4967
Joined: Thu Sep 03, 2009 6:48 pm

Filter not (always) resetting when changed

Post by therube »

Filter not (always) resetting when changed.

I've got a UNIQ filter:
video: sort:name: distinct:
.

Note that that kind of sets multiple filters.
(I don't really know if my UNIQ filter has any bearing, but...)


Sometimes I'll do something like:

Video
UNIQ
then jump back to Video

& sometimes, Everything in not picking up that change.

Like if my search is: trains

Code: Select all

Filter:    Hits:
-------    ------
Everything 18
     Video 16
      UNIQ 10
If I then change from UNIQ back to Video, it may or may not go back to displaying 16 hits.

When this happens, it's not clear how to get things "unstuck".
Even performing the same search in a new window returns the same wrong results.
Even changing the search term; trains -> trXXXaiXXXns & back, kind of thing.
So it seems there a cache in there, but it is not always being cleared when it should (or that existing filters are being dropped off).


Note that I use a hotkey for UNIQ (filter), Alt+U.
When I change back to Video, I do that through the Filter Bar.

So I set Video (through the Filter Bar), UNIQ (hotkey), then Video (through the Filter Bar).

(I'd much prefer to: Video, filter bar -> UNIQ (hotkey) -> UNIQ (hotkey) & be back at Video... but...)
therube
Posts: 4967
Joined: Thu Sep 03, 2009 6:48 pm

Re: Filter not (always) resetting when changed

Post by therube »

But...

I've got a UNIQ filter defined.

I set Video filter (Filter Bar)
I set UNIQ (hotkey)
I dismiss UNIQ (hotkey or double-click uniq)

At that point, I'm returned to an Everything filter (rather then Video).

It would be nice if dismissing UNIQ returned back to the filter in effect prior to its invocation (Video, in this case).

I suppose that with my UNIQ, as I'm setting both video: & distinct:, so when I dismiss UNIQ, I'm also dismissing video: & distinct:, & while that may be technically correct, it's not what I am looking to happen - at that time. (Only looking for the distinct: part to drop off...)

i'll often want to toggle between Video &
UNIQ (video: + distinct:) for differing
uses - which I do simply with a hotkey, but
dismissing UNIQ looses video: too, so then
i've got to (manually) set Video (again)...


(And I'll also note, that the sort column changes too. Like if I started with Video, sorted by Length, then UNIQ, then dismissed, at that point I'm at Everything, sorted by Name.)
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filter not (always) resetting when changed

Post by void »

Video
UNIQ
then jump back to Video

& sometimes, Everything in not picking up that change.
I'm working on a fix.
Thanks for the issue report.


i'll often want to toggle between Video &
UNIQ
Consider placing these filters near each other and using Ctrl + [ and Ctrl + ]

I will consider forcing DISTINCT off when it is double clicked in the status bar.
Although, this might cause confusion when a filter with distinct doesn't have DISTINCT active.

(And I'll also note, that the sort column changes too. Like if I started with Video, sorted by Length, then UNIQ, then dismissed, at that point I'm at Everything, sorted by Name.)
This is expected when Length is a slow sort.
I will consider not setting the last fast sort when distinct: is used with sort:
Post Reply