cm_LoadSelectionFromClip is broken in cm_DirBranch mode?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
KucingLapar
Member
Member
Posts: 134
Joined: 2007-06-25, 11:54 UTC

cm_LoadSelectionFromClip is broken in cm_DirBranch mode?

Post by *KucingLapar »

While in DirBranch mode, use cm_CopySrcPathToClip on some selected files and if you try restore the selection with cm_LoadSelectionFromClip TC will fail to reselect all those files. IIRC this has been working fine for me before. Is this bugs in rc3 or it's made to work that way?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48231
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I just checked with TC 7.50a, it has never worked with files in subdirs of the branch view. Why? cm_LoadSelectionFromClip expects the files in this form:

filenameinbranchroot.txt
somesubdir\fileinbranchsubdir.txt
etc.

Currently there is no command which can copy the selected names to the clipboard in this format. You can either copy the full path or just the names, but not relative names.

cm_SaveSelectionToFile is the only function which creates a list of files in the required format. Currently there is no cm_SaveSelectionToClip. I will consider it for TC 8.
Author of Total Commander
https://www.ghisler.com
KucingLapar
Member
Member
Posts: 134
Joined: 2007-06-25, 11:54 UTC

Post by *KucingLapar »

Ah okay

By the way I just noticed that I typed cm_CopySrcPathToClip when I actually meant cm_CopyFullNamesToClip
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48231
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed cm_CopyFullNamesToClip doesn't work with branch view mode, neither in TC 7.55 not 7.50a. I will consider to support it in TC8.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
Currently there is no cm_SaveSelectionToClip. I will consider it for TC 8
Thanks :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply