Create a new txt file (the easy way with TXT extension)
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 11
- Joined: 2023-08-27, 11:03 UTC
Create a new txt file (the easy way with TXT extension)
Good evening guys,
when i press Shift+F4 it creates me and opens with my editor the files that i want to modify, BUT, when i saved it does not have an extension with .txt.
I mean why it happens this?
when i press Shift+F4 it creates me and opens with my editor the files that i want to modify, BUT, when i saved it does not have an extension with .txt.
I mean why it happens this?
Re: Create a new txt file
Probably because you don't type this extension on dialog window.
-
- Junior Member
- Posts: 11
- Joined: 2023-08-27, 11:03 UTC
Re: Create a new txt file
i have to type it? there is a way to get it automatically?
Re: Create a new txt file
2Deltaflight84
TC remembers history: https://i.imgur.com/oWNgfBp.png
TC remembers history: https://i.imgur.com/oWNgfBp.png
OS: Win10 | TC: latest x64
-
- Junior Member
- Posts: 11
- Joined: 2023-08-27, 11:03 UTC
Re: Create a new txt file
how can I create that?
-
- Junior Member
- Posts: 11
- Joined: 2023-08-27, 11:03 UTC
Re: Create a new txt file
i mean every time i have to put that, if yes that is no what i need
Re: Create a new txt file
Bind Shift+F4 to cm_Edit with /CL0N=".txt" in the parameters field. Then, each time after the dialog appears, press F4 to move the cursor to the beginning.
If you need to do this without additional pressing, create em_CreateTxt with:
If you need to do this without additional pressing, create em_CreateTxt with:
%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef "tem(`cm_Edit /CL0N=".txt"`,1) delay(40) send({F4})" |
Last edited by Fla$her on 2023-12-15, 11:45 UTC, edited 3 times in total.
Overquoting is evil! 👎
-
- Junior Member
- Posts: 11
- Joined: 2023-08-27, 11:03 UTC
Re: Create a new txt file
i don't understand only ho i create the last line, and what is the exact function
Re: Create a new txt file
1. Run cm_Confirmation from the command line (Shift+Left/Right).
2. After selecting the keys, select the appropriate command by pressing the button with a magnifier, and enter the parameters if it is cm_.
You can download TCFS2 in the topic from the specified link and unpack it in the desired path in the TC subdir's.
See also User-defined command.
2. After selecting the keys, select the appropriate command by pressing the button with a magnifier, and enter the parameters if it is cm_.
You can download TCFS2 in the topic from the specified link and unpack it in the desired path in the TC subdir's.
See also User-defined command.
Overquoting is evil! 👎
Re: Create a new txt file
2Deltaflight84
Try it again and so.
Create user-defined command em_Edit (in usercmd.ini):
Bind Shift+F4 to command em_Edit with ? in the parameters field.
Try it again and so.
Create user-defined command em_Edit (in usercmd.ini):
Code: Select all
[em_Edit]
cmd=cm_Edit
param=/GCL1N="%A.txt"
Re: Create a new txt file
In the case of "?" the parameters dialog will appear instead of the file creation dialog. Is it worth it?
L1 is not needed, it's already by default. I specifically gave L0 to make Deltaflight84 feel the difference.
L1 is not needed, it's already by default. I specifically gave L0 to make Deltaflight84 feel the difference.
Overquoting is evil! 👎
Re: Create a new txt file
I prefer the following approach:
The above command creates an empty file whenever I want it wherever I need it.
Then I open it, add some content, and save it under a suitable name regarding the content.
Code: Select all
[em_dummy_file]
cmd=cm_Edit /C /N="dummy.txt" /L0 /G
Then I open it, add some content, and save it under a suitable name regarding the content.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
-
- Junior Member
- Posts: 11
- Joined: 2023-08-27, 11:03 UTC
Re: Create a new txt file
Thanks to all for the replay and the advice, you guys are really help full thx so much