You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure that this is the best way to arrange this API. I think for creation API we might want to change doc.new_entry_from_text/doc.new_entry to ast::Entry::from_text(&mut doc)/ast::Entry::new(&mut doc). We might want to add builders for complex types like tables.
We certainly need mode AST-based editing APIs: EntryOwner::add_entry(doc, entry, position), EntryOwner::remove_entry ....
The text was updated successfully, but these errors were encountered:
Currently, the editing API is just a whole bunch of functions here: https://github.com/matklad/tom/blob/5a1b98e0b0b13529a917a9c2212f6813a9eb1948/src/edit.rs
I am not sure that this is the best way to arrange this API. I think for creation API we might want to change
doc.new_entry_from_text/doc.new_entry
toast::Entry::from_text(&mut doc)/ast::Entry::new(&mut doc)
. We might want to add builders for complex types like tables.We certainly need mode AST-based editing APIs:
EntryOwner::add_entry(doc, entry, position)
,EntryOwner::remove_entry
....The text was updated successfully, but these errors were encountered: