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.
# 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

