This forum uses cookies. Click X button to hide this message. What is stored? 
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 

Shortcut for date when (re)naming directory through F7?

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
yetanotherlogin
Junior Member
Junior Member


Joined: 24 Mar 2010
Posts: 33

PostPosted: Mon Nov 20, 2017 3:08 am    Post subject: Shortcut for date when (re)naming directory through F7? Reply with quote

Hello,

I googled for it before asking, but it doesn't look it's available.

When creating a new directory through F7, is there a keyboard shortcut to add the date (preferably as YYYY-MM-DD) ?

Thank you.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Mon Nov 20, 2017 3:17 am    Post subject: Reply with quote

No there isn't. Either type
<[d]
yourself, or press Alt+"+" (numeric keypad) and then scroll down to the right item and press Enter.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yetanotherlogin
Junior Member
Junior Member


Joined: 24 Mar 2010
Posts: 33

PostPosted: Mon Nov 20, 2017 3:44 am    Post subject: Reply with quote

Thanks.

If I type "<[d]" (without the quotes), it says : "Error: Directory [<[d]] not created!"

If I keep the ALT key pressed, and hit the + key on the numeric keypad, Windows just beeps without doing anything.

FWIW, I'm using 8.52a.
Back to top
View user's profile Send private message
Stefan2
Power Member
Power Member


Joined: 13 Sep 2007
Posts: 1702
Location: Europa

PostPosted: Mon Nov 20, 2017 3:47 am    Post subject: Create Folder with current date Reply with quote

You can use the new TC v9.10
https://ghisler.ch/board/viewtopic.php?t=48695

That comes with a new feature for your wish:

"New folder" (F7) can now use the same placeholders as the multi-rename tool
(e.g. date+time "<[YMD]"), and create multiple directories in one step using a counter.



For your case use: <[Y]-[M]-[D]

The next day you can find that command in the F7 history.


- - -

Maybe better create a user defined command
to execute a DOS command
to create a new file/folder with current date in current active panel.

Next you can assign them a keyboard shortcut.



 
Back to top
View user's profile Send private message
yetanotherlogin
Junior Member
Junior Member


Joined: 24 Mar 2010
Posts: 33

PostPosted: Mon Nov 20, 2017 3:48 am    Post subject: Reply with quote

Thanks, I'll upgrade to 9.10.
Back to top
View user's profile Send private message
Alexisback
Junior Member
Junior Member


Joined: 26 Oct 2016
Posts: 34

PostPosted: Tue Nov 21, 2017 12:29 pm    Post subject: Reply with quote

I can have this by default
in placeholders this format is not available and not even in the plugin


example:
Test date 2017.11.21 21.18.00

Code:
[=tc.creationdate.Y.M.D h.m.s]
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Tue Nov 21, 2017 4:06 pm    Post subject: Reply with quote

Yes, just put < in front of the line, otherwise TC will create a directory which is literally named [=tc.creationdate.Y.M.D h.m.s] instead of e.g. 2013.04.08 14.57.12. But it will take the creation date of the file under the cursor!

To create a directory with the current date and time, use this instead:
<[Y].[M].[D] [h].[m].[s]
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alexisback
Junior Member
Junior Member


Joined: 26 Oct 2016
Posts: 34

PostPosted: Tue Nov 21, 2017 4:21 pm    Post subject: Reply with quote

Rolling Eyes
I wanted this option to appear default in the placeholder panel without rewriting it manually each time

Image: https://i.imgur.com/eQTpyQu.png
Back to top
View user's profile Send private message
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 3297
Location: Germany

PostPosted: Tue Nov 21, 2017 4:29 pm    Post subject: Reply with quote

Seems like it is time to implement a "Load/Save" function at F7 dialogue too Wink
_________________
#5767 Personal license
Back to top
View user's profile Send private message
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10686
Location: Bratislava, Slovakia

PostPosted: Tue Nov 21, 2017 5:11 pm    Post subject: Reply with quote

Could we use MRT templates?

Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Wed Nov 22, 2017 2:29 am    Post subject: Reply with quote

It remains in the F7 history once you have used it once...
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alexisback
Junior Member
Junior Member


Joined: 26 Oct 2016
Posts: 34

PostPosted: Wed Nov 22, 2017 8:08 am    Post subject: Reply with quote

Shocked

I do not understand
why is the time different?

Image: http://i.imgur.com/Bxi2tLw.png
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2691
Location: Germany

PostPosted: Wed Nov 22, 2017 8:41 am    Post subject: Reply with quote

Alexisback wrote:
Shocked

I do not understand
why is the time different?

Image: http://i.imgur.com/Bxi2tLw.png

You have a file with the 1hour diff because of daylight saving model
_________________
Windows 10 x64 Version 1709 (OS Build 16299.125)
Fall Creators Update
TC 9.12 x64 and x86
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (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


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group