Skip to main content

render_to_text

Function render_to_text 

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

Render snapshot entries to a rope — one bare name per line, no icons. The listing text: one bare filename per line, dirs-first alpha.

Bare is load-bearing — :w diffs this against the snapshot to derive renames, so anything decorative in here would be read as a filename. Icons are virtual text for exactly this reason.