Selected File no longer selected if listview resorts

Things you’d like to miss in the future...
Post Reply
John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Canada

Selected File no longer selected if listview resorts

Post by John Bee »

Hi

I am going to try and explain this with an example.

the listview shows the following, with the second file selected and hilited:

AnyDoc.doc
----> Cab.zip <---- selected file

if I rightclick and have tugzip unzip all here(zip contains one file called bye.doc), the file is unzipped and the listview resorts the files as so:

AnyDoc.doc
----> Bye.doc <----- selection stays on this row
Cab.zip

the result is that the selected/hilited file is no long the Cab.zip. The selection/hilite doesn't move with the originally selected file, but stays on the row it was, resulting in the file Bye.doc being selected.

Not good if you delete the zip file, as you will not delete the zip file but the Bye.doc file

John (hope I explained this ok)

admin
Site Admin
Posts: 60597
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Selected File no longer selected if listview resorts

Post by admin »

Good point and well explained.
I applied a more general solution: whenever the list is auto-refreshed (as after an unzip and many other possible events), it is attempted to keep the selection at the file that had been selected before the event. "Attempted" because the file might be gone due to moves or deletions.

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Canada

Re: Selected File no longer selected if listview resorts

Post by John Bee »

admin wrote:Good point and well explained.
I applied a more general solution: whenever the list is auto-refreshed (as after an unzip and many other possible events), it is attempted to keep the selection at the file that had been selected before the event. "Attempted" because the file might be gone due to moves or deletions.
Hi

Great! :D

I find 'em, you fix 'em. :wink:

John (helping to make TrackerV3 the best bugfree filemanager out there!)

admin
Site Admin
Posts: 60597
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Selected File no longer selected if listview resorts

Post by admin »

John Bee wrote: I find 'em, you fix 'em. :wink:
Yeah, and: I fix 'em, you find another one :wink:

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Canada

Re: Selected File no longer selected if listview resorts

Post by John Bee »

admin wrote:
John Bee wrote: I find 'em, you fix 'em. :wink:
Yeah, and: I fix 'em, you find another one :wink:
Hi

Funny you should mention that, :)

Another example:

The listview contains the following files:

CobianBU.exe
CobianBU.txt
CobianBU7.0.0.127.exe
CobianBU7.0.0.127.txt

now, I rename the top two and add version numbers and the resulting list becomes:

CobianBU7.0.0.154.exe
CobianBU7.0.0.154.txt
CobianBU7.0.0.127.exe
CobianBU7.0.0.127.txt

but the listview does not re-sort the list. Even clicking on the Name column header does not re-sort the list. Only exiting the folder and then going back in will the listview properly sort the list.

John Bee

(Note: TrackerV3 has now become my primary filemanager. And since I'm retired, I have lots of time to *really* test it, hence why I seem to find these things. Not that I'm trying to find bugs, its just coming from using your program very extensively ) :D

admin
Site Admin
Posts: 60597
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Selected File no longer selected if listview resorts

Post by admin »

John Bee wrote:...but the listview does not re-sort the list. Even clicking on the Name column header does not re-sort the list. Only exiting the folder and then going back in will the listview properly sort the list.
That behavior is on purpose. It would be confusing if renaming resulted in resorting. Another way to force-sort the name column is to sort another column and then sort the name column.

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Canada

Re: Selected File no longer selected if listview resorts

Post by John Bee »

admin wrote:
John Bee wrote:...but the listview does not re-sort the list. Even clicking on the Name column header does not re-sort the list. Only exiting the folder and then going back in will the listview properly sort the list.
That behavior is on purpose. It would be confusing if renaming resulted in resorting. Another way to force-sort the name column is to sort another column and then sort the name column.
Hi

Ah, ok. I never thought to sort via another column and back.

Carry On :wink:

John Bee ( I'll stop now :D )

admin
Site Admin
Posts: 60597
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Selected File no longer selected if listview resorts

Post by admin »

If your shortcut memory is fit enough, here's something new for you: Ctrl+Shift+F5 will Sort Again the current list. (In coming BETA...)

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Canada

Re: Selected File no longer selected if listview resorts

Post by John Bee »

admin wrote:If your shortcut memory is fit enough, here's something new for you: Ctrl+Shift+F5 will Sort Again the current list. (In coming BETA...)
Hi

Ok, thats good.

I have found another problem relating to file selections.

If I have 5 files showing in the listview as: (a simplified example)

File1.txt
File2.txt <--Selected
File3.txt
File4.txt <--Selected
File5.txt <--Selected

Ok, I am going to zip up the selected files to a zip file and after it is done I will just hit the delete key to delete the selected files.

But wait, as soon as the zip dialog disappears and T3 gets back the focus, it de-selects all files except the last one I selected as so:

File1.txt
File2.txt
File3.txt
File4.txt
File5.txt <--Selected

Not too bad with only 5 files, but if you have 20, 30 files selected, well my memory is not that good to remember which files I put in the zip file.

John Bee

admin
Site Admin
Posts: 60597
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Selected File no longer selected if listview resorts

Post by admin »

John Bee wrote: I have found another problem relating to file selections...
Very good. Check out the new BETA.

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Canada

Re: Selected File no longer selected if listview resorts

Post by John Bee »

admin wrote:
John Bee wrote: I have found another problem relating to file selections...
Very good. Check out the new BETA.
Hi

Thanks, works great.

Now I try to leave you alone, for real this time. :wink:

John Bee

Post Reply