orkmode/crates
Levi Neely 623aef4f42 Fix phantom namespace nodes and child section insertion
Dynamic child resolvers returned Some for any name, fabricating phantom
document and section directories so walks to nonexistent paths appeared
to succeed. Validate existence and return None instead:
- root resolver checks get_doc
- document resolver checks new OrkState::section_exists
- section resolver checks child_ids

Also fix create_child_section, which corrupted the org file:
- find_section_end used the parent's headline-end offset, inserting the
  child before the parent's PROPERTIES/ID drawer and detaching its ID.
  Use section.span.end, which covers planning, drawer, body, children.
- The child headline was written verbatim; demote it to parent.level + 1
  via the new restar helper.

Add regression tests for restar and child section nesting.
2026-09-30 21:28:52 +02:00
..
org-ast Initial commit: org-mode parser and CLI 2026-09-30 09:43:21 +02:00
org-parser Implement property/tag writes, timestamp formatting, add tests 2026-09-30 09:52:14 +02:00
ork-cli Add 9P client to ork-cli 2026-09-30 15:11:10 +02:00
ork-server Fix phantom namespace nodes and child section insertion 2026-09-30 21:28:52 +02:00
orkmode-core Initial commit: org-mode parser and CLI 2026-09-30 09:43:21 +02:00