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,466

Similar plugins

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.

Wouter Haring 7 Nov 2026 ↓ 1,265

VirtualPanel 2.0.7.1372

📂 File operations File System Plugins (WFX) Freeware x64

Provides a virtual temporary panel that keeps links to files and folders in list files, so they behave like real files. Supports m3u import/export, scripts, logging and drag-and-drop.

MVV 1 May 2019 ↓ 90,352

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,150

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,911

CopyTree 1.3.0.328

📂 File operations Packer Plugins (WCX) Freeware x64

Copies and moves files from Branch View or search results while keeping the folder structure, with a choice of how many levels to keep, include/exclude masks, multi-threading and directory timestamp copying.

MVV 11 Apr 2020 ↓ 58,763

SpaceFit 1.0

📂 File operations Tools & Utilities Freeware x64

Fills a USB stick as full as possible, from the files you mark in Total Commander. Mark more on the left than will fit. SpaceFit finds the combination that fills the stick on the right best, and marks exactly those files. Then press F5. Done.

Native2904 1 Nov 2026 ↓ 108