Owns the multi-file working set: a list of paths, a current-index
cursor, and the navigation primitives that the colon-prompt dispatch
consumes (:n, :p, :e, :d, :x, :t).
Helper to open a file source, applying the live-mode wrapper and/or
preprocessor as configured. Factored out of main.rs so that app.rs
can also call it when switching files via colon-prompt commands.
Input preprocessor: pipe the source file through a user-defined command
before tess reads it. Supports --preprocess CMD (CLI) and $LESSOPEN
(env var). Pipe-mode only — the command must start with |, and %s
is substituted with the source file path (shell-quoted).
Status-line prompt customization. Wraps the existing DisplayTemplate
parser from format.rs, validating against a fixed set of prompt-only
placeholder names. Rendered against a PromptContext populated by the
viewport on every frame.