padzapp 1.7.0

An ergonomic, context-aware scratch pad library with plain text storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::index::DisplayIndex;

mod indexing;
mod nesting;
mod pad_fetching;
mod selector_resolve;
mod tree_search;

pub use indexing::{bucket_for_index, indexed_pads};
pub use nesting::{collect_nested_pads, NestedPad};
pub use pad_fetching::pads_by_selectors;
pub use selector_resolve::{resolve_selectors, TitleBucket};
pub use tree_search::{find_pad_by_uuid, get_descendant_ids};

pub fn fmt_path(path: &[DisplayIndex]) -> String {
    let s: Vec<String> = path.iter().map(|idx| idx.to_string()).collect();
    s.join(".")
}