-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPML Export #2639
Comments
Scrivener is Windows mainly and I am on Ubuntu. However here is a thought https://github.com/edavis/pandoc-opml
On reflection my preference would be to have CT export to Scribus. *.sla which is XML format. |
I export to TXT and use Panwriter to convert from Markdown to OPML, but native export would save a few clicks. |
Remembering that some years ago Scrivener was available as Linux AppImage I downloaded just to refresh my experience of some years earlier. That works.
Now I see that in addition to OPML, rtf can be imported. Searching .. this workaround comes up ...
What you might do is write a CodeBox Python script in CT to run this workflow if you want to "minimise your clicks". What ate a few extra clicks? You can automate clicks in UI macros. This thread does trigger thoughts on exporting CT to other apps, other than Scrivener. For example using CT as a prototyping platform then post content to other applications. For say web development. I see CodeBox as the extension of toolbar without need for new features. Interesting after thoughts are |
I'm not a coder, though. I'm a writer 😂 |
Fair enough. It seems that there have been previous requests. Although you are not a coder there are companion tools which can "drive" your CT operations as macros. Emulating key presses and the like. In Windows there is autohotkey but another cross platform tool is Actiona. |
Do you have any resources for that? |
I seem to have cracked it with the help of an AI companion (Phind.com). I had recollected some prior experience in using xml.etree.ElementTree - The ElementTree XML API (look it up). I posed the scenario of a CT document dedicated to document conversion, remembering that *.ctd is in fact XML. The first attempt required a Python script alongside the *.ctd document to be converted but a more general usage is to have a dialogue to choose in a dialogue the CherryTree *.ctd file to be converted. I created a dedicated CherryTree document for running such conversions ahead. I created one node for OPML conversion. Other nodes can be setup for different conversions ahead. In there I created a CodeBox and inserted the following script. Delete the opening/closing characters `` when pasting into CodeBox. The just Execute the CodeBox Python script. The OPML might need more tweaking to be understood by Scrivener but the principle is demonstrated. `import tkinter as tk def ctd_to_opml(ctd_file):
def convert_files():
if name == "main": |
I'll test this tomorrow (: But how do I make a codebox? |
On second thoughts it might be easier for you to just run the Python script in the same location (directory) as your CT document. Avoids the need for you to get to grips with CodeBoxes you can learn later .. optional. |
I don't have Python on my system, tho. I only have a 500gb drive so I'm stingy with space. |
Does python take up too much space? |
Describe the solution you'd like
Would it be possible to add the option to export nodes to
.opml
? OPML is used by Scrivener to automatically populate a project when importing a .opml
file.If it helps I can produce a sample OPML file so you can see how they're formatted.
Thank you (:
The text was updated successfully, but these errors were encountered: