Skip to main content

render_to_text

Function render_to_text 

Source
pub fn render_to_text(entries: &[FileTreeEntry]) -> String
Expand description

The tree’s rope text: indent, expand marker, name — and no icon.

DL.4: the glyph used to be baked in here. It is virtual text now (directory-listing-mode publishes it as a leading inlay), which makes the rope the entry NAMES: searchable, yankable, and not a rendering artefact. It also makes the tree symmetric with oil, whose rope never contained glyphs because :w diffs it.