
Show unselected files first
Moderators: Hacker, petermad, Stefan2, white
Show unselected files first
Hi, i would like to know if there is any way, even through a plugin, to sort the files in the current panel so that the unselected ones are shown first. Thanks 

Re: Show unselected files first
You can press [*] (cm_ExchangeSelection, cm_ExchangeSelFiles) and stick the files with TwinKey (ReadMe > Sticky files/folders). But pinning items in this way has side effects due to the mismatched numbering in the list.
Overquoting is evil! 👎
Re: Show unselected files first
You can use the command cm_ShowOnlySelected to show only selected files
If you want to show only the unselected files you can use the combined command: cm_ExchangeSelBoth,cm_ShowOnlySelected,cm_ClearAll
If you want to show only the unselected files you can use the combined command: cm_ExchangeSelBoth,cm_ShowOnlySelected,cm_ClearAll
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Show unselected files first
2Fla$her & petermad
Thanks for your help.
petermad wrote: 2025-02-14, 13:03 UTC If you want to show only the unselected files you can use the combined command: cm_ExchangeSelBoth,cm_ShowOnlySelected,cm_ClearAll
Unfortunately your solution doesn't work for me. I use the following command to select the files that have the same name+extension in both panels.
Code: Select all
[em_SeleccFicheirosMesmoNome+ExtAmbosPaneis]
Cmd=cm_ClearAll,cm_SelectAllFiles,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClip,cm_FocusLeft
And later, once the files are selected, I need to be able to scroll through both panels to review all of them, not just the unselected ones.
Thanks again to both of you, I hope Christian considers implementing this feature in a future version.
Best regards.
Re: Show unselected files first
2Galizza
You can give the selected files a general comment (Ctrl+Z), and then sort by column [=tc.comment].
cm_SrcCustomView№,cm_SrcSortByCol№,cm_SrcNegOrder 1
You can give the selected files a general comment (Ctrl+Z), and then sort by column [=tc.comment].
cm_SrcCustomView№,cm_SrcSortByCol№,cm_SrcNegOrder 1
Overquoting is evil! 👎
Re: Show unselected files first
Fla$her wrote: 2025-02-14, 20:39 UTC You can give the selected files a general comment (Ctrl+Z), and then sort by column [=tc.comment].
cm_SrcCustomView№,cm_SrcSortByCol№,cm_SrcNegOrder 1
This seems like a possible solution. I've tried selecting multiple files and then pressing Ctrl+Z, but Tc asks me to enter the description only for the first selected file and not for all of them, and the file descript.ion created contains only the description of the first selected file and not all of them.
Is there a way to assign a description to all the selected files in one step ?
In case this is not possible, I have another idea: I've edited the descript.ion file (I've never used descriptions before) and after looking at the file format, I think of using AutoHotkey to create a descript.ion file, paste the list of selected files from Tc into it and later add the same description text to each file of the list.
Thanks for your help

Re: Show unselected files first
Yes - Use the "Change Attributes" function, and then use "Change plugin attributes". Use Plugin = tc and Property = comment.Is there a way to assign a description to all the selected files in one step ?
You can save this as a template (F2), and then run it automatically for selected files with the OPENATTRIBUTES command
It can be done a little simpler with:I use the following command to select the files that have the same name+extension in both panels.
Code: Select all
[em_select_same_name_ext]
cmd=cm_CompareDirs 1,cm_ExchangeSelection,cm_FocusTrg,cm_ExchangeSelection,cm_FocusTrg
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Show unselected files first
2petermad
I will edit my USERCMD.INI, thank you very much for your help.
I will edit my USERCMD.INI, thank you very much for your help.
Re: Show unselected files first
2Galizza
Sorry for not specifying the details. Ctrl+Z is assigned to em_MultiComment (TCFS2 + MCE). Usercmd.ini:
Ctrl+Z shows the TC dialog for one item, and a similar MCE window for several.
But as petepmad correctly hinted, you can add a custom em_ command with OPENATTRIBUTES=<Settings> at the beginning of the chain I have given.
Sorry for not specifying the details. Ctrl+Z is assigned to em_MultiComment (TCFS2 + MCE). Usercmd.ini:
Code: Select all
[em_MultiComment]
cmd=%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef if(msg(1074,1004+msg(1074,1000))<2,tcm(2700),tem(em_MultiComment2))
[em_MultiComment2]
cmd=%COMMANDER_PATH%\Addons\TC_Multi_Comment_Edit\tc_multi_comment_edit.exe
param=%WF "%P" MCE_DISABLE_SINGLEEDIT|MCE_PREFER_ANSI
But as petepmad correctly hinted, you can add a custom em_ command with OPENATTRIBUTES=<Settings> at the beginning of the chain I have given.
Overquoting is evil! 👎
Re: Show unselected files first
2Fla$her Thanks 

Re: Show unselected files first
If there would be sorting according to the selection (selected first and unselected last or vice versa) it would be simpliest way for user.
Making it through comments is risky because you can unintentionally overwrite existing comments. Maybe you have no comments there, but in common users should be careful. Changing of comments through Change attributes (OPENATTRIBUTES command) overwrites all existing comments without warning. The solution would be formerly to verify if there is descript.ion file and copy it outside the folder, then apply multichange and after all needed work put it to its original state by moving ion file back.
Making it through comments is risky because you can unintentionally overwrite existing comments. Maybe you have no comments there, but in common users should be careful. Changing of comments through Change attributes (OPENATTRIBUTES command) overwrites all existing comments without warning. The solution would be formerly to verify if there is descript.ion file and copy it outside the folder, then apply multichange and after all needed work put it to its original state by moving ion file back.
Re: Show unselected files first
I suppose a person who has asked such a question about pseudo-sorting should understands what is in his working folders and what is not. There is no point in talking about other users.oko wrote: 2025-02-16, 11:57 UTCMaking it through comments is risky because you can unintentionally overwrite existing comments. Maybe you have no comments there, but in common users should be careful.
Overquoting is evil! 👎
Re: Show unselected files first
2Fla$her
I am not talking about other users, but about all users in common (person who has asked is among them). Everyone has to be carefull when he is going to change comments in the way meantioned. Comments are hidden and mass editing does not add but overwrite. It is good to remember facts and consequensions. But the main point is that sorting according to selection would be less risky and less hardworking. Not only for person who has asked but for every user who has the same need.
I am not talking about other users, but about all users in common (person who has asked is among them). Everyone has to be carefull when he is going to change comments in the way meantioned. Comments are hidden and mass editing does not add but overwrite. It is good to remember facts and consequensions. But the main point is that sorting according to selection would be less risky and less hardworking. Not only for person who has asked but for every user who has the same need.
Re: Show unselected files first
2oko
Listen, it's not official documentation after all, but just a trick, in the context of a rather specific request. Therefore, I believe that there is no point in talking about it as if it were some kind of reference material. I don't think you've opened anyone's eyes (including the questioner) to the fact that comments are replaced by mass editing. Nevertheless, this is a solution that has no problems with reading the listbox items when opening.
If I thought that the topic author isn't educated enough, I would also suggest a comment text (e.g. zzzz or something) to get the correct reverse sorting if there were already comments in the working folder, but fortunately I'm not captain obvious.
Listen, it's not official documentation after all, but just a trick, in the context of a rather specific request. Therefore, I believe that there is no point in talking about it as if it were some kind of reference material. I don't think you've opened anyone's eyes (including the questioner) to the fact that comments are replaced by mass editing. Nevertheless, this is a solution that has no problems with reading the listbox items when opening.
If I thought that the topic author isn't educated enough, I would also suggest a comment text (e.g. zzzz or something) to get the correct reverse sorting if there were already comments in the working folder, but fortunately I'm not captain obvious.

Overquoting is evil! 👎
Re: Show unselected files first
2Fla$her
It was not meant against the trick/solution. I only added information. Topic author didn't even know how to mass-change comments, he was obviously doing it for the first time. Regardless what you think/suppose/guess about topic author or my post, important is that he and hundreds users reading this topic will know what to take into account when using the trick. And also there are arguments why sorting by selection would be better way than by comments.
It was not meant against the trick/solution. I only added information. Topic author didn't even know how to mass-change comments, he was obviously doing it for the first time. Regardless what you think/suppose/guess about topic author or my post, important is that he and hundreds users reading this topic will know what to take into account when using the trick. And also there are arguments why sorting by selection would be better way than by comments.