TUI multiline fuzzy document finder for text files, PDFs, DOCXs with word-based search across lines
Docfd is a terminal-based fuzzy document finder that searches across multiple file types including text files, PDFs, DOCX documents, and other formats. Unlike traditional grep tools that operate on individual lines using regex patterns, docfd performs word/token-based searches that can span multiple lines, making it easier to find content that crosses line boundaries.
The tool provides a TUI interface with a content preview pane that displays snippets surrounding search results. It supports multithreaded indexing and searching, and integrates with text editors and PDF viewers for direct navigation to search results. Users can narrow search scope based on current results, edit command history in their preferred text editor, and utilize clipboard integration for workflow efficiency.
Docfd operates as a standalone offline tool that doesn't require server setup. It recursively scans directories for supported file extensions (.txt, .md, .pdf, .epub, .odt, .docx, .fb2, .ipynb, .html, .htm for multiline search, and .log, .csv, .tsv for single-line mode). The tool uses external dependencies like pandoc for document format support, pdftotext for PDF extraction, and fzf for selection menus. It's designed for users who want ad hoc document searches without reorganizing their existing folder structures.
# via GitHub Releases
Download from https://github.com/darrenldl/docfd/releases
# via AUR
yay -S docfd-bin
# via Nix
nix-env -iA nixpkgs.docfd

