I want to create a new, empty file using Total Commander.
I have not been able to find out how to do this simple task, so I am asking here.
I want to create a new, empty file using Total Commander.
I have not been able to find out how to do this simple task, so I am asking here.
You can create a new text file in Total Commander by pressing SHFT + F4 and entering a file name. The file will automatically open in the editor which is configured under Configuration -> Options -> Operation -> Edit/View -> Editor for F4.
Press SHIFT +F4. Simple. No need for any menus or the mouse.
I saw in some blog (don't remember which - sorry) on a very simple way to do it which has a more TC authentic feel to it:
cmd /c type null >?%NThis way it works exactly like creating a new directory - and you can hardly notice it actually opens a shell window (it closes in less than a second).
Since TC Beta 9.0 (June 2016) this functionality is also present in the internal command list as cm_EditNewFile (2931 - Create+Open a new text file). This means you can now create a button that does this for you, if that's your thing.
RMB on a button bar -> Change -> Add a new button -> Enter command 'cm_EditNewFile'
I went a bit old school with my way of doing it;
In the command bar at the bottom I type copy con followed by the file name and [Enter]. I then either paste the file contents or just press [F6], as I would have done 25 years ago in DOS. From there you can [F4] the file into your configured editor.
To complement the answer, you can write in Configuration -> Options -> Operation -> Edit/View -> Editor for F4.
"explorer" "%1"
so default editor is used, for instance your text editor for .txt or open Word for .doc files.
If it is about text files copy an existing file and rename it. Open it and select all, delete. I admit, that this is more difficult than in Windows Explorer but you will get used to it soon and often you copy files that are similar in its contents so modifying from an existing copy makes it easier than writing everything from scratch. At least this is the case when dealing with code.
Unfortunately, you can't.
At least not directly with Total Commander. But you can invoke the standard Windows Explorer behavior from Total Commander.
Try this:
In the Total Commander file/folders-panel right-click and hold the mouse for about 1 second.
Total Commander will now fall-through to the normal Windows right-mouse menu you would normally get in Windows Explorer.
This menu's context depends on the object beneath the mouse-pointer. So you will only see the New->Text document (or whatever other file-format that's available on your system) option if you do this without any object beneath the cursor.
So you will have to click below the last file in the list in order to have nothing selected. Even if the list fills the panel completely there is still a tiny (5 pixels or so) blank area below the last file that you can use.