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
-
j
or down arrow - Scroll down with mouse wheel when hovering above the area
-
- Scroll up the document list
-
k
or up arrow - Scroll up with mouse wheel when hovering above the area
-
- Scroll down the content search result list
-
Shift
+j
orShift
+Down arrow - Scroll down with mouse wheel when hovering above the area
-
- Scroll up the document list
-
Shift
+k
orShift
+Up arrow - Scroll up with mouse wheel when hovering above the area
-
- Open document
-
Enter
- Docfd tries to use
$VISUAL
first, if that fails then Docfd tries$EDITOR
- Docfd tries to use
-
- Switch to
CONTENT SEARCH
mode/
- Exit Docfd
-
q
orCtrl+c
-
CONTENT SEARCH
mode
- Content search field is active in this mode
-
Enter
to 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