* Do not index a .txt file if line 1 does not contain "Content-Type: text/x-zim-wiki"
* A Try-Except block for this will probably perform better than If-Then since the exceptions will be rare.
* Provide a menu selection something like "Plain text (not indexed)" that changes line 1 of a file to "Content-Type: text/plain".
(I haven't looked at the Zim code so don't take this as criticism. Zim is my diary, folio, manual log, notebook of documentation and anything else I can think of. It's always open. I couldn't live without it!)
Some thoughts on a possible solution...
* Do not index a .txt file if line 1 does not contain "Content-Type: text/x-zim-wiki"
* A Try-Except block for this will probably perform better than If-Then since the exceptions will be rare.
* Provide a menu selection something like "Plain text (not indexed)" that changes line 1 of a file to "Content-Type: text/plain".
(I haven't looked at the Zim code so don't take this as criticism. Zim is my diary, folio, manual log, notebook of documentation and anything else I can think of. It's always open. I couldn't live without it!)