1. Create new RTF file, with name e.g. list.rtf, in plain text editor with following content:
Code: Select all
{\rtf1\plain\
line1
line2
line3
}
3. Start TC with following content of main ini file:
Code: Select all
[Lister]
RTF=1
[ListerPlugins]
0=c:\totalcmd\Plugins\wlx\listplugsample\listplug.wlx
0_detect="EXT="RTF""
5. Press 4 key: Lister will reload file still using plugin view, while expected behavior is to switch to Lister's RichEdit RTF view.
A kind of workaround is to use the detect string:
Code: Select all
0_detect="(FORCE & EXT="RTF" ) | !(EXT="RTF")"
In case with more than one extension supported by internal RichEdit control, like *.rtf and *.wri, detect string should look like:
Code: Select all
0_detect="((FORCE & EXT="WRI") | !(EXT="WRI")) & ((FORCE & EXT="RTF") | !(EXT="RTF"))"