TOTALCMD.NET
ENG RUS
Plugins › TC Utilities

SmartNewFile 0.02

📂 File operations 🛠️ Total Commander tweaks TC 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 TC Lister Plugins Freeware x64

GisViewer Lister plugin for Total Commander 1. What's this? This is a lister plugin for Total Commander, to view ESRI shapefiles. 2. How to install?…

WANG Aiyong 7 Feb 2024 ↓ 6,400

Similar plugins

VirtualPanel 2.0.7.1372

📂 File operations TC File System Plugins Freeware x64

VirtualPanel is a temporary panel plugin for Total Commander. It is is a sort of virtual folder that allows keeping links to frequently used files and…

MVV 1 May 2019 ↓ 90,125

DiskDir Extended 1.68

📂 File operations TC Packer Plugins Freeware x64

The same as DiskDir - creates a list file with all selected files and directories, including subdirs - but also lists contents of archive files:…

Peter Trebaticky 3 Jan 2015 ↓ 95,688

CopyTree 1.3.0.328

📂 File operations TC Packer Plugins Freeware x64

Packer plugin for copying files with folder structure: + copies/moves folder trees from branch view/search result + 'choose number of levels to…

MVV 11 Apr 2020 ↓ 58,594

TextSearch 1.6.4

📂 File operations Content plugins Freeware x64

This Content plugin allows to perform full-text search in any documents, which have command-line converters to the plain-text form. Included…

Alexey Torgashin 5 Mar 2018 ↓ 57,978

UnicodeTest/LockedTest 1.2.3

📂 File operations Content plugins Freeware x64

This content plugin allows to check: 1. is filename Unicode or ANSI (on Windows NT+); 2. is file locked by another task or not.

Alexey Torgashin 28 Jan 2013 ↓ 50,459

badcopy 1.0.0.4

📂 File operations TC File System Plugins Freeware

Copies files from bad CDs / DVD of disks, and also with bad HDD. Reads out a file parts, and those parts that were not read fills in zero. For disks…

hram 3 Nov 2007 ↓ 49,863