This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Go to newest file

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2878
Location: Germany

PostPosted: Sat Oct 12, 2013 10:36 am    Post subject: Go to newest file Reply with quote

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.
Back to top
View user's profile Send private message
Gral
Power Member
Power Member


Joined: 26 Jan 2005
Posts: 572

PostPosted: Tue Oct 15, 2013 2:06 am    Post subject: Reply with quote

cm_SrcByDateTime,cm_GoToFirstFile as command chain is not enough?
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2878
Location: Germany

PostPosted: Tue Oct 15, 2013 3:46 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Gral
Power Member
Power Member


Joined: 26 Jan 2005
Posts: 572

PostPosted: Tue Oct 15, 2013 3:49 am    Post subject: Reply with quote

Add cm_SrcByName at the end.

cm_SrcByDateTime,cm_GoToFirstFile,cm_SrcByName
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2878
Location: Germany

PostPosted: Tue Oct 15, 2013 3:59 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Sombra
Power Member
Power Member


Joined: 27 Dec 2005
Posts: 795
Location: Zaragoza, Spain

PostPosted: Tue Oct 15, 2013 10:42 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group