docfd
TUI multiline fuzzy search tool for text files, PDFs, DOCXs with text editor integration
Docfd is a terminal-based document search tool that performs multiline fuzzy searching across various file formats including text files, PDFs, DOCX, EPUB, and HTML files. Unlike traditional grep-based tools that operate line-by-line with regex patterns, docfd uses word/token-based searching that can span multiple lines, making it effective for finding content across paragraph boundaries.
The tool provides a TUI interface with a content preview pane that displays snippets surrounding search results. It integrates directly with text editors and PDF viewers, allowing users to jump to specific search results with a single key press. Docfd supports multithreaded indexing and includes features like search scope narrowing (limiting subsequent searches to current results), editable command history, and clipboard integration.
Docfd targets users who need standalone, offline document search without complex setup or centralized storage requirements. It indexes files on-demand using hashing to identify changed files, requiring no background indexer or file importing. The tool includes a simple scripting language for recording and replaying search sessions, making it suitable for repetitive search workflows. However, it's designed for moderate document collections (under 10k documents) and focuses on English-language content.
Installation
# via Binary download
Download from GitHub releases at https://github.com/darrenldl/docfd/releases
# via opam
opam install docfd
# via AUR
yay -S docfd-bin


Alternatives & related tools
enola
CLI tool for finding social media accounts by username across multiple social networks
sad
Batch file search-and-replace tool that shows a diff preview before writing changes; optional fzf selection of hunks and delta/diff-so-fancy colorizing.
ddgr
Command line utility to search DuckDuckGo from the terminal with custom result counts and privacy features.
fselect
File search tool using SQL-like queries to find files with complex conditions and metadata filtering
television
Fuzzy finder for the terminal that searches files, text, git repositories, and custom data sources in real-time
add a badge to your README
Maintain docfd? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/docfd?utm_source=badge)<a href="https://www.trmn.sh/tools/docfd?utm_source=badge"><img src="https://www.trmn.sh/badge/docfd.svg" alt="Featured on trmn" height="20"></a>