giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.31k stars 456 forks source link

[support question] convert rich_text web link to plain text #2339

Open omega3 opened 10 months ago

omega3 commented 10 months ago

Can somebody help me, please. When exporting to plain text, rich_text web links that are pasted to Cherrytree like this: 2YQAtiG.png (obraz PNG, 572×133 pikseli) https://i.imgur.com/2YQAtiG.png

are exported only as title.

When I open ctd in text editor (Kate on Plasma KDE) I see:

    <rich_text link="webs https://www.youtube.com/watch?v=TvbasBUmShU" scale="h3">Summer Music Mix 2023</rich_text>

Is there a way to bulk convert them to plain text so that in cherrytree they will look like:

title
https link 

not necessarily in this order and forget scale. I just don't want to loose actual https link.

Is there any script that could be run in Manjaro Linux terminal?

Alternatively, what would be rich text way to split rich text web link into rich text link and title?

Whatever I tried to edit in ctd I ended up in "xml parsing error" when opening ctd file. After such converting I'd like to be able to open ctd file in Cherrytree and be able to copy my notes elsewhere.