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)
Selected File no longer selected if listview resorts
-
- 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
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.
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.
Re: Selected File no longer selected if listview resorts
Hiadmin 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.
Great!
I find 'em, you fix 'em.
John (helping to make TrackerV3 the best bugfree filemanager out there!)
-
- 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
Yeah, and: I fix 'em, you find another oneJohn Bee wrote: I find 'em, you fix 'em.
Re: Selected File no longer selected if listview resorts
Hiadmin wrote:Yeah, and: I fix 'em, you find another oneJohn Bee wrote: I find 'em, you fix 'em.
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 )
-
- 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
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 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.
Re: Selected File no longer selected if listview resorts
Hiadmin wrote: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 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.
Ah, ok. I never thought to sort via another column and back.
Carry On
John Bee ( I'll stop now )
-
- 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
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...)
Re: Selected File no longer selected if listview resorts
Hiadmin 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...)
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
-
- 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
Very good. Check out the new BETA.John Bee wrote: I have found another problem relating to file selections...
Re: Selected File no longer selected if listview resorts
Hiadmin wrote:Very good. Check out the new BETA.John Bee wrote: I have found another problem relating to file selections...
Thanks, works great.
Now I try to leave you alone, for real this time.
John Bee