Flerp
flerp is a terminal UI for exploring and analyzing local files without leaving the command line. It opens text documents in a full-screen ratatui workspace and gives you live search, content viewing, file statistics, keyword extraction, repeated-line detection, and adjustable display settings.
It is built in Rust and currently supports plain text files, PDFs, and image metadata previews.
What Flerp Does
- Opens a file in an interactive terminal workspace
- Extracts text from PDF files for the same analysis flow used for text files
- Shows quick structural metrics such as line count, word count, unique words, empty lines, and longest line
- Finds the most frequent keywords in the loaded content
- Searches file content with live updates
- Supports case-sensitive, regex, and whole-word search modes
- Lets you jump from search results directly into the viewer
- Highlights repeated lines that appear multiple times
- Persists UI preferences in an XDG config file
- Includes multiple built-in color themes
Supported File Types
.txtand other UTF-8 readable text files.pdfvia text extraction.png,.jpg,.jpegas metadata summaries
For image files, flerp does not render the image in the terminal. It shows file metadata such as name, format, dimensions, and file size instead.
Interface Overview
The application is organized into five modes:
DashboardQuick summary cards, content preview, and the currently selected search match.SearchSearch results, search options, and regex validation errors.ViewerScrollable file content view.AnalyzeExtended analysis panels such as keywords and repeated lines.SettingsTheme and behavior settings that are saved automatically.
Features
Search
- Live search while typing
- Case-sensitive toggle
- Regex search toggle
- Whole-word matching toggle
- Match counts per result
- Jump-to-line from the selected result
Analysis
- Lines
- Words
- Characters
- Stanzas
- Empty lines
- Unique words
- Longest line
- Average word length
- Top keywords
- Repeated lines
UI and Workflow
- Full-screen terminal interface
- Multiple themes
- Optional line numbers
- Optional line wrapping
- Adjustable content preview size
- Adjustable keyword count
- Saved preferences between runs
Installation
From crates.io
From source
Running
Open a file
Open a PDF
Open an image metadata view
Show help
Show version
Terminal Requirement
flerp requires an interactive terminal session. It will exit with an error if stdin or stdout is not connected to a real terminal.
Keyboard Controls
Global
qquit the applicationEscexit search mode or quit when not searchingTabswitch between modes/enter search mode
Search and Filters
Enterapply the current search or jump to the selected result from the Search tabBackspacedelete the last search characterctoggle case-sensitive searchrtoggle regex modewtoggle whole-word matching
Viewer
Upscroll upDownscroll downPageUpscroll up by one preview windowPageDownscroll down by one preview windowHomejump to the topEndjump to the bottom
Search Results and Settings
UpandDownmove through search resultsLeftandRightadjust the selected setting in the Settings tab
Display Options
ltoggle line numbersztoggle line wrapping
Saved Settings
Flerp stores UI preferences in the XDG config directory using directories::ProjectDirs.
Typical Linux path:
~/.config/flerp/settings.toml
Saved settings include:
- theme
- keyword limit
- preview line count
- case sensitivity
- regex mode
- whole-word mode
- line numbers
- line wrapping
Development
Prerequisites
- Rust toolchain
- Cargo
Build
Test
Run from source
Tech Stack
ratatuifor the terminal UIcrosstermfor terminal input/outputclapfor CLI argument parsingpdf-extractfor PDF text extractionregexfor advanced searchingserdeandtomlfor persisted settingsdirectoriesfor config directory resolutionimagefor image metadata support
Screenshots

Repository
- Homepage: https://github.com/Huseynteymurzade28/flerp
- Repository: https://github.com/Huseynteymurzade28/flerp
License
MIT