On Fri, Jan 17, 2014 at 10:30 AM, Robert C Watson <
<email address hidden>> wrote:
> 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!)
>
This is indeed what I was planning.
First step will be to ignore text files without a heading
Second step will be to implement a commandline "--import" that allows
importing text files (by adding the heading)
Third step will be to add a dialog for importing text files that are not
imported.
On Fri, Jan 17, 2014 at 10:30 AM, Robert C Watson <
<email address hidden>> wrote:
> 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!)
>
This is indeed what I was planning.
First step will be to ignore text files without a heading
Second step will be to implement a commandline "--import" that allows
importing text files (by adding the heading)
Third step will be to add a dialog for importing text files that are not
imported.
-- Jaap