Page 1 of 1

Go to newest file

Posted: 2013-10-12, 16:36 UTC
by Horst.Epp
There was some clever command line posted which gets to the newest file in the current file list:

cmd.exe /k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "" "%%COMMANDER_EXE%%" /O /S /L="%%~ff\:" & exit"

I suggest having such a function as new internal command.

Posted: 2013-10-15, 08:06 UTC
by Gral
cm_SrcByDateTime,cm_GoToFirstFile as command chain is not enough?

Posted: 2013-10-15, 09:46 UTC
by Horst.Epp
Gral wrote:cm_SrcByDateTime,cm_GoToFirstFile as command chain is not enough?
No, because that requires to set the sorting by date.
I will not work if sorting is as usual by name.
The new function would get to the newest file regardless of the current sort.

Posted: 2013-10-15, 09:49 UTC
by Gral
Add cm_SrcByName at the end.

cm_SrcByDateTime,cm_GoToFirstFile,cm_SrcByName

Posted: 2013-10-15, 09:59 UTC
by Horst.Epp
Gral wrote:Add cm_SrcByName at the end.

cm_SrcByDateTime,cm_GoToFirstFile,cm_SrcByName
But that leaves it in a possible other sort oder than before.
So my suggestion would not change the sort oder at all.

Posted: 2013-10-15, 16:42 UTC
by Sombra
Support the idea!
Horst.Epp wrote:So my suggestion would not change the sort oder at all.
That's the point