TOTALCMD.NET
ENG RUS
Plugins › Tools & Utilities

SmartNewFile 0.02

📂 File operations 🛠️ Total Commander tweaks Tools & Utilities Open source x64

Description

A small tool to create folders or text files in Total Commander

https://github.com/gepcel/totalcmd-newfile

Total Commander has a built-in folder creation function (default: F7) and several plugins to extend its functionality.

* Features

1. Replaces the F7 function, invoking this tool to create either a folder or a file.
2. Folder creation:
- If the input has no extension (e.g., `subfolder`), pressing Enter creates a folder.
3. File creation:
- If the input includes an extension (e.g., `.txt`, `.ini`, `.md`), pressing Enter creates a file.
4. Toggle action (Shift+Enter):
- Switches behavior—e.g., create a file named `subfolder` or a folder named `name.txt`.
5. Two Toggleable options:
- Write clipboard content (F1): Pastes clipboard text into the new file (ignored for folders).
- Open after creation (F2): Opens the created file with the default Windows program, or folder in totalcmd.
6. Two Manual buttons:
- Folder (Enter): Forces folder creation, regardless of input.
- File (Shift+Enter): Forces file creation, regardless of input.
7. Configuration file (`NewFile.ini`):
- Automatically generated when pressing F1/F2 to save preferences.
- This part uses [ini-parser](https://github.com/rickyah/ini-parser) (credits included).
8. Reverse "open after" behavior (Ctrl+Enter):
- If "open after" is enabled, skips opening; if disabled, opens the file/folder. Useful when you don't want to change the `Open after creation (F2)` option.
9. Custom file extensions (`txtformat`):
- Default: Text files (e.g., `.txt`, `.md`, `.ini`).
- Add extensions manually in the INI file (e.g., `.mp4`, though not meaningful), separated by commas.
10. Total Commander path:
- Must specify `totalcmd.exe` or `totalcmd64.exe` path in the INI file.

* Example INI File

```ini
[Configuration]
autowriteclipboard = True
autoopenaftercreated = True
totalcmd = C:\Path\To\TOTALCMD64.EXE
txtformat = .txt,.md,.ini,.py,.xml,.cs
```

* How to use this?

1. Download the `NewFile.exe`, put it under `%COMMANDER_PATH%\Plugins\addons\newfile\*`.
2. Create a command in `usercmd.ini` like:

```
[em_F7]
button=
cmd=%COMMANDER_PATH%\plugins\addons\newfile\NewFile.exe
param=%P
```
3. Configure the totalcmd shortkey `F7` to `em_F7`.

More by WANG Aiyong

GisViewer 1.0.1.1

🎮 Games, CAD, 3D & science Lister Plugins (WLX) Freeware x64

Views ESRI shapefiles in Lister, recognizing whether a file belongs to a shapefile set or stands alone. Handles .shp, .shx, .prj, .dbf, .sbn, .sbx and .shp.xml files.

WANG Aiyong 7 Feb 2024 ↓ 6,489

Similar plugins

TC Wiper 1.0.2 beta

📂 File operations File System Plugins (WFX) Freeware x64

Securely wipes files and folders moved into its Network Neighborhood panel with F6: overwrites them with random data, including alternate streams, then renames and deletes them. Refuses system folders.

Andrei Piasetski 10 Nov 2026 ↓ 358

EverySearch 1.4

📂 File operations Content Plugins (WDX) Freeware x64

Live search box on top of the active Total Commander panel, powered by Everything (voidtools): results update while typing and can be fed into a real panel listing, opened, viewed or jumped to.

4FR Young 7 Nov 2026 ↓ 1,389

SetFolderDate 1.5

📂 File operations Tools & Utilities Freeware

Sets the timestamp of folders and archives from the newest or oldest file inside them, and sets the timestamp of files from the filename or metadata.

van Dusen 19 Jul 2011 ↓ 10,222

Totalgram 26.11.07.1203

📂 File operations File System Plugins (WFX) Open source x64

Lets you use Telegram as a cloud file system, so you can work with files stored in Telegram right from a Total Commander panel.

Igor Zviagintsev 8 Nov 2026 ↓ 451

CatalogMaker 4.1.3

📂 File operations Packer Plugins (WCX) Freeware x64

Creates catalogs of selected files, folders or drives with a user-defined list format and chosen fields. Catalogs can be opened like ordinary archives or viewed as text.

Konstantin Poliakov 3 Jan 2022 ↓ 50,953

DiskDir Extended 1.68

📂 File operations Packer Plugins (WCX) Freeware x64

Creates a list file of all selected files and directories including subdirs, and also lists contents of archives such as ARJ, ACE, CAB, JAR, RAR, ZIP, TAR, TGZ, TBZ and ISO.

Peter Trebaticky 3 Jan 2015 ↓ 95,958