chipsenkbeil / vimwiki-rs

Rust library and tooling to parse, render, and modify vimwiki text and files.
56 stars 2 forks source link

Add depth to region of vimwiki crate #98

Closed chipsenkbeil closed 3 years ago

chipsenkbeil commented 3 years ago

It should be possible to encode the depth of each element as parsed in the vimwiki crate. Starting with depth 0 being a root-level element and incrementing as we go down.

chipsenkbeil commented 3 years ago

In the short term, we can support this in vimwiki-server by leveraging the parent element edge and hopping up until we have no parent to count how deep we are. This is not ideal as it requires the entity framework, which is heavier than needed.

chipsenkbeil commented 3 years ago

Resolved by https://github.com/chipsenkbeil/vimwiki-rs/commit/2d5017873dd8f3a3b0589bf2b25c15c1213f0502