Skip to main content

Crate tess

Crate tess 

Source

Modules§

ansi
ANSI SGR (Select Graphic Rendition) + OSC 8 hyperlink parser.
app
batch
Non-interactive write mode (--output FILE / --stdout).
cli
error
file_set
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).
filter
format
grep
hex
xxd-style hex dump rendering. One row = 16 bytes, with offset prefix and ASCII gutter.
input
keys
Custom keybindings loaded from ~/.config/tess/keys.toml.
line_index
marks
Pure helpers for marks (m<x> / '<x>) and previous-position swap (^X^X).
open
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.
preprocess
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).
prettify
Content-type detection and pretty-printing for structured data.
prompt
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.
render
shell
“Drop TUI -> run shell command -> restore TUI” helper. Used by !cmd at runtime AND by lesskey’s !shell command bindings (Task 3).
source
tags
Tag-file parsing and lookup. Supports ctags (traditional + exuberant suffix) and etags formats. Public API: TagFile::load, TagFile::lookup, TagFile::find_walking_up.
terminal
viewport