I’m happy to share Docfd, an interactive TUI tool finding the text file you need quickly.
(Will submit to opam when time frees up a bit.)
Screenshots and interface
Searching left is in the repo root
Searching [github] in the repo root
The TUI is divided into three sections:
- Left is the list of documents which satisfy the search constraints
- Top right is the preview of the document
- Bottom right is the ranked content search result list
- Bottom bar is the search interface
Controls
Docfd operates in modes, the initial mode is NAVIGATION mode
NAVIGATION mode
- Scroll down the document list
jor down arrow- Scroll down with mouse wheel when hovering above the area
- Scroll up the document list
kor up arrow- Scroll up with mouse wheel when hovering above the area
- Scroll down the content search result list
Shift+jorShift+Down arrow- Scroll down with mouse wheel when hovering above the area
- Scroll up the document list
Shift+korShift+Up arrow- Scroll up with mouse wheel when hovering above the area
- Open document
Enter- Docfd tries to use
$VISUALfirst, if that fails then Docfd tries$EDITOR
- Docfd tries to use
- Switch to
CONTENT SEARCHmode/
- Exit Docfd
qorCtrl+c
CONTENT SEARCH mode
- Content search field is active in this mode
Enterto confirm search constraints and exit search mode
Limitations
- Docfd is focused on typical desktop use, so simplicity of components is often favoured over strict performance
- That being said, the in-memory index and search should still be performant enough
- No on-disk index is built



