Alex Roper
Alex Roper
There's https://github.com/PoiScript/orgize/pull/32 for it.
Out of curiosity, why not skip the JSON and just use org's text representation as your serialization format? Are you modifying the db in another language? Regardless: Orgize's data structures...
Are you representing the entire org file as one row in SQLite? Or is there one row per headline? I'm not sure why one would do the former. Headline per...
I think you have to manipulate the arena directly via arena_mut and then use the arena's parent/child/etc functions to add arbitrary elements. Not straightforward at all. I haven't done this,...
Here's an example: ``` let mut org = orgize::Org::default(); { let mut title = orgize::elements::Title::default(); title.raw = "Other stuff".into(); title.keyword = Some("TODO".into()); title.properties.pairs.push(("FOO".into(), "BAR".into())); let start = orgize::elements::Datetime { year:...
I uploaded the code I mentioned: https://github.com/calmofthestorm/starsector
If you are willing to give every headline an ID, I think the diff problem gets much easier, since you can simply diff two nodes iff they have the same...
[Document::children](https://docs.rs/orgize/latest/orgize/struct.Document.html#method.children) and [Headline::children](https://docs.rs/orgize/latest/orgize/struct.Headline.html#method.children) return an iterator of `Headline`, so I don't think you'll need to filter if you use them. [indextree::NodeId::children](https://docs.rs/indextree/4.3.1/indextree/struct.NodeId.html#method.children) and [indextree::NodeId::ancestors](https://docs.rs/indextree/4.3.1/indextree/struct.NodeId.html#method.ancestors) return all nodes, so I think if...
I don't believe you can get the original raw string with Orgize. I'm not sure how the traits work -- never used anything other than writing it out to plain...
I believe I addressed the requested changes.