Skip to content

Modules

Modules are sourced in strict order. Each module depends on helpers and prior modules.

OrderModuleCommandsDescription
1lib/core.sh3Standalone commands: fh, fkp, fbr
2lib/scoped.sh24Scoped find/navigate/grep across 3 scopes × 8 actions
3lib/variants.sh72Hidden/no-ignore variants across 3 scopes × 3 variants × 8 actions
4lib/ext.sh210Extension-filtered commands across 3 scopes × 10 extensions × 7 actions
5lib/ops.sh24File operations across 3 scopes × 8 operations
6lib/help.sh1fzf-help / f-help command browser

Defines 3 standalone commands that don’t follow the scope pattern:

  • fh — History search and execute
  • fkp — Kill process
  • fbr — Git branch checkout

Generates scoped commands using a for loop over scopes (c, r, g) and actions:

  • Find file/directory (f, d)
  • Open in nvim (n), preview with bat (b), cd with zoxide (z)
  • Grep (g), grep + bat (gb), grep + nvim (gn)

Extends scoped commands with hidden/no-ignore variants:

  • -h adds --hidden flag to fd/rg
  • -ni adds --no-ignore flag
  • -hni adds both flags

Generates extension-filtered commands by looping over the _fext associative array. Each extension gets find, nvim, bat, and operation commands.

Generates file operation commands (remove, move, copy, rename) for files and directories across all scopes.

Defines the fzf-help (aliased as f-help) command that lists all loaded my-fzf functions using declare -F and lets you inspect their definitions.