Other column damages selection for addcolumn search function's sorted column

Discussion related to "Everything" 1.5 Alpha.
Post Reply
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Other column damages selection for addcolumn search function's sorted column

Post by nikov »

Greetings,
In Everything, other column damages selection if there is sorted column which is added by addcolumn search function. ( Bug ? )

Explanation with an example:
Suppose, in Everything, the "Length" column is enabled/visible, then I run the following command:

Code: Select all

Everything64.exe -search "C:\ addcolumn:a:1 a-label:=Simple_Text a:=simpleText sort:ColumnA" -select C:\file.ogg
The command should select the "C:\file.ogg" file but it does not. But it selects properly if the "Length" column is disabled or "Simple_Text" column is not sorted ("sort:ColumnA" is removed from the command) or sorted by name, size, path, date-modified.

Also, I have noticed that, selection is lost just after the "Length" of "C:\file.ogg" file is fetched by Everything (taking some time) and shown in the screen but maybe only when an additional non-indexed column/property is enabled/visible.

Note that, this may happen for only once after every computer "log off" or "restart" event, maybe due to sorts and fetched data are somehow cached and subsequent sorts and fetchs are done with the help of the cache.

This is somewhat similar to the previous post of viewtopic.php?t=14634 about addcolumn search function, it seems like sorting of added column by addcolumn search function brings issues.

Thank you.
void
Developer
Posts: 16754
Joined: Fri Oct 16, 2009 11:31 pm

Re: Other column damages selection for addcolumn search function's sorted column

Post by void »

Thank you for the issue report nikov,

Everything was removing the result twice when the length was gathered.

The first time, Everything removes the result to update the length.
The current selection and focus is stored.

The second time, Everything removes the result to update your Custom ColumnA
Nothing happens as the result is already removed.
However, the stored selection and focus is overwritten as not selected and not focused.

Everything re-adds the result if it matches the current search.
The incorrect selection and focus is restored. (not selected and not focused)



The next alpha update will only remove the result once.
The correct selection and focus will be restored.

In short, Everything will keep your selection and focus on C:\file.ogg
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Re: Other column damages selection for addcolumn search function's sorted column

Post by nikov »

Added column by addcolumn has occasional surprises, don't know why they are not treated just like the other columns...
but anyway many thanks for this fix in the next alpha update.
void
Developer
Posts: 16754
Joined: Fri Oct 16, 2009 11:31 pm

Re: Other column damages selection for addcolumn search function's sorted column

Post by void »

Everything 1.5.0.1371a fixes an issue with losing the selection and focus when using customize column values.
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Re: Other column damages selection for addcolumn search function's sorted column

Post by nikov »

Thank you very much. It is now working nice.
But just a minor problem exist, and maybe this existed before and maybe not related to addcolumn, is that:

Sometime or for some directories, Everything starts re-querying ("Querying...") again after some time (~0.5 seconds) later (for ~short time), then after the querying ends, it deactivates the selection.

But not a big problem as I can re-activate the selection again by pressing the space bar key. But still I reported this, if this can be of any use to Everything.

Also, don't know, in the first place, why it sometime or for some directories needs to start re-querying again after ~0.5 seconds later (for ~short time) even after all the items and properties were listed correctly? It seems Everything just deactivates the selection maybe just for an unnecessary re-querying.

Thank you.


Update: This post cell is partially wrong. Thus, strikethrough-ed.
Actually this problem is very much reproducible. This happened because I externally set auto disable of result omissions for some directories. And I forgot that.
See the updated post cell below:
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Re: Other column damages selection for addcolumn search function's sorted column

Post by nikov »

Updated previous post cell:

Thank you very much. It is now working nice.
But just a minor problem exist. Though this is not related to addcolumn or any column but similar as this is related to selection, is that:

Once "Index-->Enable Result Omissions" is checked/unchecked Everything starts querying ("Querying...") (for ~short time), then after the querying ends, it deactivates the selection.

But not a big problem as I can re-activate the selection again by pressing the space bar key. But still I reported this, if this can be of any use to Everything.

Thank you.
Post Reply