Comments (5)
This is a problem Benjamin. You see, tomboy-ng is not a 'port' its a complete rewrite. And the note, while active, is in a Object Pascal 'component' called kMemo. So, I read the xml, convert it to KMemo and then when we save, convert back to XML. While in KMemo, there is no xml. So, any xml I don't know about will not make it through the process.
Links - I do intend to highlight http links at some stage. I think it makes more sense to do so 'on the fly' rather than embed tags because I need to check them anyway, if you edit a bit of text and it becomes a link, I need to mark it and if it stops being a link, I need to unmark it.
Dates - I don't see any reason to tag dates, do you ? It might make searching easier ? Anyway, dea easy to implement a Ctrl-D to make insert a plain text date. Would that help ?
But as a general answer, not much I can do about automatically handling xml that is outside of what I support, apart from directly supporting it of course.
from tomboy-ng.
I think it's worth directly supporting, as far as preserving, all XML that could be produced by Tomboy or its standard plugins— i think these plugins, they're called "Add-ins" actually in my interface, must be in its core repository, though all i know for sure is that they were included with the Tomboy Version 1.14.1-3 as installed from the Debian repositories.
Here are the ones i could imagine generating XML— i only use the first two but enabled the others to see what they produce:
- Backlinks (none, though maybe it makes use of the link:internal below)
- Insert Timestamp
- Fixed Width (monospace, below)
- Underline (underline, below)
Everything else below must come from Tomboy core.
Here's the XML i regularly see:
<link:internal></link:internal>
<link:url></link:url>
<datetime></datetime>
<underline></underline>
<monospace></monospace>
<bold></bold>
<italic></italic>
<list><list-item dir="ltr"></list-item></list>
<size:small></size:small>
<size:large></size:large>
<size:huge></size:huge>
Note that normal-sized text does not get marked up. There may be a better way to get a comprehensive list of in-note XML produced by Tomboy, but this is my best effort.
from tomboy-ng.
Just some comments on your list of tags -
<link:internal></link:internal>
- I don't plan to record internal links in the xml, there is no point as such things are constantly being rewritten. Its fully functional already.<link:url></link:url>
- As above but its not functional. I personally hate the way Tomboy guesses often invalid links so am not terribly motivated to add this 'feature'. Someone else my be better motivated.<datetime></datetime>
- I don't see any point in recording in the xml that something is a date time reference. If anyone else can think of why its a good thing, I might implement it. I can easily add a Ctrl-D to add a date time literal at cursor position.<underline></underline>
Tomboy does not seem to offer an underline feature. It is, to some extent, used up by links.<monospace></monospace>
- Yep, monospace is definitely on my todo list but its an issue of determining exactly which font to use in a cross platform manner.<bold></bold>
- we do that already.<italic></italic>
- we do that already<list><list-item dir="ltr"></list-item></list>
- we do that already<size:small></size:small>
- we do that already<size:large></size:large>
- we do that already<size:huge></size:huge>
- we do that already
from tomboy-ng.
Just be sure: will tomboy-ng also remove tags if I don't change a note (so not typing in it)?
And would the embedded linking improve the performance (I just saw the issue #15)?
from tomboy-ng.
Alex, sorry I have overlooked your question.
No, tomboy-ng will not resave an unchanged note.
I think I'll close this ticket, most if not all the issues it raised have either been implemented or do not seem appropriate to implement.
It is still the case that tomboy-ng will not preserve the xml tags beyond the standard set. It does preserve the content between removed tags.
If anyone wants particular XML features added, please post such a request, should be easy to do as long as we can agree its a good idea to extend the 'standard'.
from tomboy-ng.
Related Issues (20)
- White selection on dark themes when unfocussed HOT 44
- 0.36a1-1: search interface completely broken HOT 12
- Tomboy-ng icon not displaying in Taskbar Windows 10 HOT 2
- Sync error : "(line 1 pos 1) Root element is missing" HOT 8
- synchronization: add support for automated synchronization with frequency HOT 42
- Export to PDF produces blank file HOT 3
- Button layout management wrong HOT 26
- Feature Request: Markdown Preview HOT 13
- does it work OK on CrunchBang Linux? HOT 2
- Yellow highlight in pasted text. HOT 11
- Use Semantic Versioning in your releases and downloadables HOT 6
- Import from original Tomboy HOT 2
- Debian testing: Version 0.36a-2 Wrong layout HOT 2
- BullXXXXet ?? HOT 1
- Line feed (shift-enter) does not work. HOT 5
- RPM Binary missing HOT 10
- Undo does not work with [ENTER] HOT 2
- Special characters in headline confuse the program HOT 6
- Replace License HOT 1
- Links to folders and files HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tomboy-ng.