Page 1 of 1

Wish: cm_GoToYoungestFILE, cm_GoToYoungestFOLDER

Posted: 2024-06-21, 10:16 UTC
by Stefan2
If we create a new file or a new folder, often we want to do something automatically with it.

To select them, we can do workarounds like "cm_SrcByDateTime , cm_GoToFirstEntry , cm_Return"

But maybe you can implement two new commands like cm_GoToYoungestFILE, cm_GoToYoungestFOLDER (in source)


Or:
cm_GoToYoungest = file
cm_GoToYoungest 1 = folder



 

Re: Wish: cm_GoToYoungstestFILE, cm_GoToYoungstestFOLDER

Posted: 2024-06-21, 10:28 UTC
by Dalai
I think you mean "youngest" instead of "youngstest".

Re: Wish: cm_GoToYoungstestFILE, cm_GoToYoungstestFOLDER

Posted: 2024-06-21, 10:50 UTC
by Stefan2
?

Yes, you're right, thanks.

Modified it now.


 

Re: Wish: cm_GoToYoungestFILE, cm_GoToYoungestFOLDER

Posted: 2024-06-21, 12:14 UTC
by petermad
In my Extended Menus I use these em_commands:

Code: Select all

[em_gotonewestfile]
cmd=cm_SrcByName 8,cm_SrcByDateTime 2,cm_GoToFirstFile,cm_SrcByName 9
menu=Go to newest file

[em_gotooldestfile]
cmd=cm_SrcByName 8,cm_SrcByDateTime 1,cm_GoToFirstFile,cm_SrcByName 9
menu=Go to oldest file

[em_gotonewestdir]
cmd=cm_SaveSelection,cm_SwitchDirSort 2,cm_SrcUserSpec 8,cm_SrcByName 8,em_hide_all,cm_SrcByDateTime 2,cm_GoToFirstEntry,cm_SrcUserSpec 9,cm_SrcByName 9,cm_RestoreSelection
menu=Go to newest folder

[em_gotooldestdir]
cmd=cm_SaveSelection,cm_SwitchDirSort 2,cm_SrcUserSpec 8,cm_SrcByName 8,em_hide_all,cm_SrcByDateTime 1,cm_GoToFirstEntry,cm_SrcUserSpec 9,cm_SrcByName 9,cm_RestoreSelection
menu=Go to oldest folder

[em_gotosmallestfile]
cmd=cm_SrcByName 8,cm_SrcBySize 1,cm_GoToFirstFile,cm_SrcByName 9
menu=Go to smallest file

[em_gotolargestfile]
cmd=cm_SrcByName 8,cm_SrcBySize 2,cm_GoToFirstFile,cm_SrcByName 9
menu=Go to largest file

[em_hide_all]
cmd=cd |*
menu=Hide All Files (Show Only Folders)
Except for enabling sorting of directories, these commands returns everything to how it was before the command is executed.

Re: Wish: cm_GoToYoungestFILE, cm_GoToYoungestFOLDER

Posted: 2024-06-21, 13:00 UTC
by Stefan2
petermad wrote: 2024-06-21, 12:14 UTC In my Extended Menus I use these em_commands:
Thanks, that's fine for the moment too.

But you have to remember that trick somehow, specifically when you change your TC or PC (e.g. working on others device).

And it can't be looked up just in TOTALCMD.inc - text file.