Docfd

TUI fuzzy document finder

Installation

Statically linked binaries are available via GitHub releases

Usage

Read from piped stdin
command | docfd

Docfd operates in Single file mode when source of document is piped stdin.

Read from files
docfd [PATH...]

The list of paths can contain directories. Each directory in the list is scanned recursively for files with one of the following extensions:

If the list of paths is empty, then Docfd defaults to scanning the current directory ..

If exactly one file is specified in the list of paths, then Docfd operates in Single file mode. Otherwise, Docfd operates in Normal mode.

Normal mode

Searching is left in repo root:

Searching [github] in repo root:

The default TUI is divided into four sections:

Controls

Docfd operates in modes, the initial mode is Navigation mode.

Navigation mode

Search mode

Single file mode

If the specified path to Docfd is not a directory, then single file mode is used.

Searching is left in README.md:

Searching [github] in README.md:

In this mode, the TUI is divided into only two sections:

The controls are also simplified: