Page
Library
Module
Module type
Parameter
Class
Class type
Source
TUI fuzzy document finder
Statically linked binaries are available via GitHub releases
command | docfd
Docfd operates in Single file mode when source of document is piped stdin.
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:
.md
.txt
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.
Searching is left
in repo root:
Searching [github]
in repo root:
The default TUI is divided into four sections:
Docfd operates in modes, the initial mode is Navigation
mode.
Navigation
mode
Scroll down the document list
j
or down arrowScroll up the document list
k
or up arrowScroll down the content search result list
Shift
+j
or Shift
+Down arrowScroll up the document list
Shift
+k
or Shift
+Up arrowOpen document
Enter
$VISUAL
first, if that fails then Docfd tries $EDITOR
Switch to Search
mode
/
Clear search phrase
x
Exit Docfd
q
or Ctrl+c
Search
mode
Enter
to confirm search phrase and exit search modeIf 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:
j
, k
, Up arrow and Down arrow can now be used to scroll the content search result list without Shift
.