Make persistent selection more persistent

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Thany
Senior Member
Senior Member
Posts: 293
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Make persistent selection more persistent

Post by *Thany »

How about making the persistent selection a little bit more persistent. Persistent in TC's world means not to clear the selection when another listitem get focused. The persistent selection is still cleared when going away, drinking coffee (or insert another acitivity that takes any amount of time), and reactivaying the TC window. TC may find that the directory contents have changed, reloads the contents, and resets the selection.

Why not keep the selection intact, while still reloading directory contents? This might be very useful for selecting things in a directory that you are downloading to (or is being uploaded to, by another person in the network).

I can go even further. Why not keep the selection intact even after N directory changes? You might by accident go into another directory only to come back and discover that your selection is now gone. This is a punishment in some cases and is not neccesary if TC would keep track of per-directory selection up to a certain amount of previous selections.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

The persistent selection is still cleared when going away, drinking coffee (or insert another acitivity that takes any amount of time), and reactivaying the TC window. TC may find that the directory contents have changed, reloads the contents, and resets the selection.
Try pressing NUM / in that situation. If you don't have a numeric keyboard, then use Mark -> Restore selection - or make a button with the command cm_RestoreSelection
.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Thany
Senior Member
Senior Member
Posts: 293
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Post by *Thany »

I know the numpad-slash trick, I was just hoping that TC would do this automatically in a future version.

Also, num-slash does work when the directory has changed, only when the content has changed (or the selection is reset for some other reason).

I guess my point is, persistent selections are not persistent, and I don't think it is logical that a change in directory contents should reset the selection. There's no practical reason for that (the only reason for it, is a technical one), as far as I can see.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

The thing is the Save selection works predictably, just not the way you (and I) would expect.
It automatically saves selection if you select some files and make some operation on them and it changes it when you select and make some operation on other files. This includes operations that are selecting files automatically - showing a context menu, delete, copy (not in destination dir, since it does not select there anything), ...
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Save selection "temporarily" is of almost no use. As soon as you use any other TC command the saved selection is lost.
Or if you switch panels/tabs and use "save selection" in another tab. You can no longer restore the selection in the previous tab.

The save-selection command should be PER tab, and it shouldn't be lost until you use save-selection Again.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
Thany
Senior Member
Senior Member
Posts: 293
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Post by *Thany »

What is "save selection" then? I lost you... Is it the same as the regular persistent selections I started this topic about?
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

cm_SaveSelection (cmd# 530)
cm_RestoreSelection (cmd#529)

Basically, you can select files - whether or not Norton-style-right-click select is enabled, and "briefly" save that selection.

As soon as you change dirs, or use another TC internal command (incl. saveSelection in another tab) You are no longer able to restore the selection.

The command is so fragile I'm not sure what I would ever use it for.

Compare it to TwinKey's "StickySelect" or Bookmarks ---which can be retained not only between tabs but also when you close TC and restart!
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

cm_SaveSelection (cmd# 530)
cm_RestoreSelection (cmd#529)
As a workaround you can use:
cm_CopyFullNamesToClip
cm_LoadSelectionFromClip

It wil stay in Clipboard until replaced by other clip.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

cm_SaveSelection / cm_RestoreSelection works also after changing directories. However, TC calls cm_SaveSelection itself before most file operations, so you can use "/" on the numeric keypad for cm_RestoreSelection after most operations without the need of calling cm_SaveSelection yourself.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

ghisler(Author) wrote:However, TC calls cm_SaveSelection itself before most file operations ...
And that's the problem. While sometimes this can be useful, it makes manual saving useless, because that save gets overwritten after any operation (even by a simple right-click to show a context menu). I think that a manually saved selection should be independent of the automatic one.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I think that a manually saved selection should be independent of the automatic one
I agree.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

"Autosave-Selection"

Post by *Stance »

Balderstrom wrote:The save-selection command should be PER tab,
- Support
Balderstrom wrote: and it shouldn't be lost
- Support
Balderstrom wrote:until you use save-selection Again.
- Support
Balderstrom wrote:[Snip]...not only between tabs but also when you close TC and restart!
- Support
Post Reply