Text file creation

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
andres992
Member
Member
Posts: 124
Joined: 2006-04-12, 21:26 UTC

Text file creation

Post by *andres992 »

As we all know, F7 creates a new directory.

May I suggest to open a similar feature (e.g. for F12 or whatever combination) for creating a simple plaintext file with predetermined settings.

For example, I press F12, then TC would ask me for a name and I type it: let's say "readme". (*.txt could be the default extension but if I type "readme.eng", the extension would be eng). Then TC would just create the text file in that place (just as it would create a directory on pressing F7) and open it for editing in a predetermined editor (e.g. default is Notepad but replaceable with a user-preferred editor, e.g. EmEditor).

Presently this can be done with TCUPNew or maybe some other tool/command. I created this through usercmd.ini and TCUPNew but I think it would be a great native option too, and very, very convenient.
#68776 Personal Licence
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

did you tried Shift-F4?

ado
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

And also…

Post by *Clo »

2andres992

:) Hello !

• Like ado says, Shift+F4 works fine, but also Right-click >> Local Menu >> New >>
[Sub-menu offering text formats according to which softs are installed…]

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
andres992
Member
Member
Posts: 124
Joined: 2006-04-12, 21:26 UTC

Post by *andres992 »

Indeed, did not know that :) Thanks for the hint.

Not 100% the same (I still have to type the extension, e.g. *.txt) but it would probably be a waste of resources to ask an additional feature of "just creating a text file and automatically adding a default extension".
#68776 Personal Licence
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

andres992 wrote: "just creating a text file and automatically adding a default extension".
You can do this on your own:

f.ex.

[em_NewFile]
Cmd=notepad.exe
Param=?.txt
button=

Put this in usercmd.ini and add an shortcut (even the Shift+F4 is possible)
(or make an button from it)


Then you are prompted with [.txt ]
Just press [Pos1], add your text and press <enter>

Search the forum for more suggestions like "putfile.exe" or "NewFile" or "%P%N", "%P%O.txt"
like
http://www.ghisler.ch/board/viewtopic.php?t=18671
http://www.ghisler.ch/board/viewtopic.php?t=17308
http://www.ghisler.ch/board/viewtopic.php?t=8872
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
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.
Post Reply