Add text file to existing content
Sigil is able to open simple text file per menu "File->Open->Text files": it is converted into rudimentary .xhtml file. What I missed was an ability to add a simple text file to existing content. This patch provides such an ability.
I implemented it as an extra context menu "Add Existing Text Files..." (see image).
Implementation has no sanity checks and doesn't care about suffixes: it means you can add any file and Sigil will try to make simple xhtml text file from it. It is safe to add files with same name.
Disclaimer: it works for me, in my environment (Ubuntu 14.04, 64 bit) as designed, don't hold me responsible if it doesn't in yours. And I'm still not sure about concurrency...
Now, this is too old to be of any value now - so keep the servers happy I've removed this patch.
Last edited by varlog; 11-22-2016 at 04:53 PM.
|