Go to newest file

Here you can propose new features, make suggestions etc.

Moderators: Hacker, Stefan2, white, sheep

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

Go to newest file

Post by *Horst.Epp » 2013-10-12, 16:36 UTC

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: 640
Joined: 2005-01-26, 15:12 UTC

Post by *Gral » 2013-10-15, 08:06 UTC

cm_SrcByDateTime,cm_GoToFirstFile as command chain is not enough?

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

Post by *Horst.Epp » 2013-10-15, 09:46 UTC

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: 640
Joined: 2005-01-26, 15:12 UTC

Post by *Gral » 2013-10-15, 09:49 UTC

Add cm_SrcByName at the end.

cm_SrcByDateTime,cm_GoToFirstFile,cm_SrcByName

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

Post by *Horst.Epp » 2013-10-15, 09:59 UTC

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: 795
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra » 2013-10-15, 16:42 UTC

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