Sorting a column does not persist on new search, if distinct:

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

Sorting a column does not persist on new search, if distinct:

Post by therube »

Sorting a column does not persist on new search, if distinct:.


if i sort by Size
then enter a different Search (same Tab)
sort reverts to Name

- IT WOULD SEEM TO BE SOME SETTING in my .ini ... - BUT, WHAT ?

AH: we're back to DISTINCT:

(lets see what was said about distinct:, & distinct: becoming [yet] more, distinct:)
(i don't like this more distinct: distinct:!
but i LUV green eggs & ham, Sam I am!)

(while i happen to have, sort:name:, in my UNIQ aka [video: sort:name: distinct:]
it is not the sort:name: that is the issue, but the distinct:
[& i wish it weren't])

(this had been bugging me now for a bit of time as every time i'd change Search, sort
would also change, & i was like, huh? & i'd click a column header to sort, then change
sort, then click column header, then change sort, then click column header... so, now,
figured i'd have a look, & well, distinct: ;-))
void
Developer
Posts: 15349
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting a column does not persist on new search, if distinct:

Post by void »

What is the end goal here?
Do you want Everything to hide duplicated names?

What type of searches do you use with this filter?
-I'm thinking a different search function is needed here, one that doesn't presort the results and finds distinct items in the entire index.
-This would only work if your searches are basic filename searches.

Maybe something like index-distinct:

The presort wouldn't be required as it will lookup duplicated items from the index, rather than the results.

Currently, distinct: must presort your results.
Everything doesn't restore your current sort as it would be too expensive.

distinct: will sort by name, then path.
Only the first name and path will show in your results. -Is this what you want?

Usually when you are searching for distinct items by name, you will want to see the results sorted by name.
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sorting a column does not persist on new search, if distinct:

Post by therube »

What is the end goal here?
To not have the sort change on a new search.
Do you want Everything to hide duplicated names?
Yes.
Yes, at particular times.
As I'm dealing with sets of files, I do not want to see the dup'd files as they are nothing but clutter.
When I know what I am going to do with the files, at that point, I'll drop the distinct: - so that I can then see the dups, & do whatever it is that I need to do with the sets of files in their entirety. (As in, when I make a change or some other action, I want the same change propagated in the same way to all the dup'd files too [which would otherwise be hidden by the distinct:].)
What type of searches do you use with this filter?
Any & all types, actually.
Depending on what I'm doing at a particular time, it may deal with video: or pic: or audio: ...
But it could be anything - distinct: AND dupe:name, dupe:size, case:, sorts, paths, ...
Only the first name and path will show in your results. -Is this what you want?
First or second or nth doesn't matter, only that 1 is returned.
Usually when you are searching for distinct items by name, you will want to see the results sorted by name.
Au contraire. It was actually a Length sort that was really bringing this to light for me.
And the in the particular case, I was (predominately) only concerned about Length, & so with every new search, I had to click the Length column to get the sort I wanted.

When finding "dups", depending, a name may not be indicative of a dup.
Where some other factor; size or Length or date or ... might be.

I want to find duplicated files that are not named the same, so that I can correct the naming to be, duplicated.
Or I know the names of particular files are not indicative of what a file is, so I can search on size to find possible dups. Or Lengths. Or...

But at the same time, at first, during a search like this, distinct: filters out what I don't need to see - until I'm at a point where I then do need to see (the dup'd items).
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sorting a column does not persist on new search, if distinct:

Post by therube »

Currently, distinct: must presort your results.
Everything doesn't restore your current sort as it would be too expensive.
OK, so I see now, this has always been the case.

It is only with my most current use case where I specifically was, "only concerned about Length", that made this more apparent.

OK.

So I can disable the distinct:, which can muddy up my results, somewhat, or deal with re-sorting.
I'll ponder it, but I'm good.
void
Developer
Posts: 15349
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting a column does not persist on new search, if distinct:

Post by void »

index-distinct: will not help if you are searching for a path..

Results would be missing with index-distinct: as it will only match files/folders from the first path sorted item in your index.



I will also look into an option to keep your current sort.
However, when enabled, expect your search times to go from ~50 milliseconds to half a second.
void
Developer
Posts: 15349
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting a column does not persist on new search, if distinct:

Post by void »

Everything 1.5.0.1372a adds an option to keep your current sort when using dupe:, distinct: or unique:

To keep your current sort when using dupe:, distinct: or unique:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    dupe
  • Select: dupe_keep_sort
  • Set the value to: true
  • Click OK.
Post Reply