This Total Commander Content plugin allows to perform full-text search in any documents, which have command-line converters to the plain-text form.
To use this plugin, call Total Commander's search dialog (Alt+F7) and activate plugin on Plugins tab, as shown on picture:
Included converters are:
FB2=wscript.exe /B /NoLogo "C:\Program Files\FB2 to Any\fb2txt_commandline.vbs" "{In}" "{Out}"
DJVU=Path\DjVuLibre\djvutxt.exe "{In}" "{Out}" {CP:UTF8} DJV=DJVU
Plugin configuration file is TextSearch.ini, located in the plugin folder. If it doesn't exist, TextSearch.Sample.ini is copied to TextSearch.ini on execution.
Options | Meaning |
---|---|
Log | If set to 1, then TextSearch.log file will be created in the %TEMP% folder, containing error messages about converters execution. |
ShowErrors | If set to 0, no error messages will be displayed. To see errors occured you still can use the Log option. |
DeleteOutFile | If set to 0, resulting file (from {Out} macro) won't be deleted. |
EXTENSION=Path\Converter.exe Parametersor
EXTENSION=ANOTHER_EXTENSIONConverter path can be written without plugin folder path (plugin folder set as current on converter execution).
Macros | Meaning |
---|---|
{In} | Expanded to full path of the source file. Should be double-quoted. |
{Out} | Expanded to full path of the resulting temporary text file. Should be double-quoted. |
{InShort} | Expanded to short (8.3) path of the source file. |
{OutShort} | Expanded to short (8.3) path of the resulting file. |
Commands | Meaning |
{CP:Codepage} | Specifies that resulting file should be decoded from some "codepage" to the ANSI.
Allowed values of Codepage are (self-descriptioned):
|
{Home:Path} | Specifies the "home directory" of the converter process, Path value. Can be set e.g. to the converter application path if converter doesn't support running from non-application folder. |
[Converters] RTF={CP:RTF} LOG={CP:UTF8}
To perform multiple codepages search, write several {CP:Codepage} commands to the corresponding converter line, for example:
[Converters] LOG={CP:ANSI} {CP:UTF16}To perform multiple codepages search in all files specify the "*" extension, for example:
[Converters] *={CP:ANSI} {CP:UTF8} {CP:UTF16}Note that the "*" converter has the lower priority, so if for example both "*" and "PDF" converters are specified, all PDF files will be searched using "PDF" converter and other files will be searched using "*" converter.