Go to newest file

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Go to newest file

Post 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.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

cm_SrcByDateTime,cm_GoToFirstFile as command chain is not enough?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post 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.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Add cm_SrcByName at the end.

cm_SrcByDateTime,cm_GoToFirstFile,cm_SrcByName
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post 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.
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Support the idea!
Horst.Epp wrote:So my suggestion would not change the sort oder at all.
That's the point
I can read English, but... I write like Tarzan. (sorry)
Post Reply