Version 1.4.2.0
Addon for Total Commander that allows to edit files in different editors depending on the extensions.
| Author: | Konstantin Vlasov, 2022 | |
| Homepage: | http://flint-inc.ru/ | |
| E-mail: | support@flint_inc.ru |
Distributed under Artistic License 2.0.
System requirements:
Using editor in Total Commander has some limitations, particularly:
There are different ways of solving these problems, but none of them is flawless. TCER is another attempt of finding a compromise.
The program is opened by pressing F4 and automatically redirects file opening into an appropriate editor. If several files are selected they will all be opened, otherwise the focused file (the one under cursor) will be opened. See also the Restrictions of the program section.
To install the program copy it into any directory. The configuration file tcer.ini (see below for the description) should be located either in the same directory, or (if this directory is write-protected) in the directory where the main configuration file of TC (wincmd.ini) lies.
After that open the Configuration dialog in TC, select the page "Edit/View" and specify the full path to the tcer.exe file in the "Editor" field. Configuring the program itself is performed via manual editing of the INI file. It is recommended to use TCER of the same bitness as TC (i.e., 32-bit TCER with 32-bit TC, and 64-bit TCER with 64-bit TC). If this requirement is not met editing files from redirected paths (like system32 directory) may open a different file from what you see in TC.
| [Configuration] | General program settings section. | |
| MaxItems=256 | When the number of selected files exceeds the number specified here, additional confirmation request will be displayed. The value 0 turns it off. | |
| MaxShiftF4MSeconds=2000 | To distinguish between F4 and Shift+F4 TCER checks the timestamp. If the file passed to editor has been created just now, it means Shift+F4 and this file only is sent to the editor. This key configures the maximum error: time length (in milliseconds) after which the file is no longer "created just now". |
|
| ClearSelection=1 | If set to 1, the selection in the TC panel will be automatically cleared after launching the editor. | |
| [Extensions] | Section for binding file extensions to the editors. | |
| ext1,ext2,...=Editor1 | ext1, ext2 is a list of file extensions (<nil> for empty extension); the editor is specified in the [Program_Editor1] section. |
|
| [DefaultProgram] | Parameters for the default editor (see description in the [Program_Editor1] section). |
|
| [Program_Editor1] | Parameters for the editor Editor1. |
|
| FullPath=%ProgramFiles%\MyEditor\MyEditor.exe | ||
| Full path to the editor executable file. Environment variables are supported. (Please, keep in mind that variables' values may be different for 32- and 64-bit applications.) | ||
| CommandLineArgs= | Additional command line arguments passed to the editor. | |
| MDI=1 | 1 for multi-document editors; 0 for single-document editors. | |
%TEMP%\_tc and %TEMP%\_tc_ are special, only the focused file is opened from them (temporary solution, may be improved in the future).| Q: | Why another multi-editor? There are already ChoiceEditor, OFSTC, F4Menu. | |
| A: | I just wanted to have such a program for myself, so that I did not depend on the authors of these programs and could myself fix bugs and implement improvements for my own needs. The functionality of TCER will never reach one of the mentioned programs, this is not my goal. The emphasis is on the minimal essential functionality, maximum compactness and performance. If anybody finds this program useful I'll be glad, otherwise there are other solutions to choose from. More is always better than less. | |
| Q: | I don't want to edit INI file manually. Why there is no visual configurator? | |
| A: | Because of the same minimalistic approach. It is possible that such a configurator will be written and included into the package, but this task has low priority for me. Besides, even in this case it will be a separate utility not integrated into the main executable. | |
| Q: | How can I assign several editors for single extension and select one of them on demand? | |
| A: | This function is not implemented and not planned. | |
F4 from the Find Files dialog worked only with the standalone dialog.F4 from the Find Files dialog.GetTextMode parameter in wincmd.ini.c:\\file.ext (some applications fail to open such paths).Shift+F4) were not detected on FAT/exFAT volumes.