lesster
Display interactive scrollable text (less-like)
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install lesster
choosenim install lesster
git clone https://www.github.com/telatin/lesster
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| lesster | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://www.github.com/telatin/lesster |
|---|---|
| Homepage | https://telatin.github.io/lesster |
| Registry Source | nimble_official |
README
lesster
A less-like interactive text pager for the terminal, written in Nim. Use it as a standalone binary or embed it in your own Nim program.
Install
nimble install lesster
Or build from source:
nim c --path:src -o:bin/lesster src/lesster_app.nim
Usage
lesster file.txt
lesster -t "My Log" --scheme matrix file.log
cat output.txt | lesster -
Options
| Flag | Description |
|---|---|
-t, --title |
Title shown in the title bar (default: filename) |
-s, --scheme |
Colour theme: default dark light matrix mono terminal |
--full-help |
Open bundled full help in the TUI |
Keybindings
| Key | Action |
|---|---|
Up / Down |
Scroll one line up / down |
PgUp / PgDn |
Scroll one page up / down |
Space |
Scroll one page down |
g |
Jump to top |
G |
Jump to bottom |
/ |
Enter case-insensitive regex search mode |
n / N |
Next / previous match |
m |
Toggle minimal Markdown rendering |
s |
Toggle word-wrap |
Tab |
Cycle colour themes |
q |
Quit |
Markdown mode is auto-enabled when opening files ending in .md.
Library API
import lesster
# Display an in-memory sequence of lines
viewText(lines: seq[string], title = "", themeName = "default")
# Display a file path, or "-" for stdin
viewFile(path: string, title = "", themeName = "default")
License
MIT