Skip to content

Key bindings

Darren Li edited this page Nov 27, 2024 · 1 revision

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

Navigation mode

  • Exit Docfd
    • Ctrl+C
    • Ctrl+Q
    • q
  • Open document
    • Enter
      • Docfd tries to use $VISUAL first, if that fails then Docfd tries $EDITOR
  • Switch to search mode
    • /
  • Switch to filter mode
    • f
  • Enter clear mode
    • x
  • Change screen split ratio
    • Tab
  • Rotate key binding info
    • ?
  • Enter yank/copy mode to copy search results to clipboard
    • y
  • Enter yank/copy paths mode to copy paths to clipboard
    • Shift+y
  • Enter narrow mode
    • n
  • Enter drop mode
    • d
  • View/edit command history
    • h
  • Switch to reload mode
    • r
  • Scroll down the document list
    • j
    • Down arrow
    • Page down
    • Scroll down with mouse wheel when hovering above the area
    • If there is only one document listed, then this scrolls down the search result list instead
  • Scroll up the document list
    • k
    • Up arrow
    • Page up
    • Scroll up with mouse wheel when hovering above the area
    • If there is only one document listed, then this scrolls up the search result list instead
  • Scroll down the search result list
    • Shift+J
    • Shift+Down arrow
    • Shift+Page down
    • Scroll down with mouse wheel when hovering above the area
  • Scroll up the search result list
    • Shift+K
    • Shift+Up arrow
    • Shift+Page up
  • Undo document store changes
    • u
    • Ctrl+Z
  • Redo document store changes
    • Ctrl+R
    • Ctrl+Y

Search mode

  • Search field is active in this mode
  • Enter to confirm search expression and exit search mode

Filter mode

  • Filter field is active in this mode
  • Enter to confirm path filter glob and exit search mode

Clear mode

  • Clear search field
    • /
  • Clear file path filter field
    • f

Copy mode

  • Copy currently selected search result
    • y
  • All results of selected document
    • a
  • All results of marked document
    • m
  • All results of listed document
    • l
  • Cancel/exit copy mode
    • Esc
    • Ctrl+C

Copy paths mode

  • Path of selected document
    • y
  • Paths of marked document
    • m
  • Paths of unmarked document
    • Shift+m
  • Paths of listed documents
    • l
  • Paths of unlisted documents
    • Shift+L
  • Cancel/exit copy paths mode
    • Esc
    • Ctrl+C

Narrow mode

  • Select level of search scope narrowing
    • 1-9

Drop mode

  • Drop currently selected document
    • d
  • Drop all unlisted documents
    • u
  • Drop all listed documents
    • l
  • Cancel/exit drop mode
    • Esc
    • Ctrl+C

Reload mode

  • Reload selected document
    • r
  • Reload all documents
    • a
Clone this wiki locally