Modules
Module Load Order
Section titled “Module Load Order”Modules are sourced in strict order. Each module depends on helpers and prior modules.
| Order | Module | Commands | Description |
|---|---|---|---|
| 1 | lib/core.sh | 3 | Standalone commands: fh, fkp, fbr |
| 2 | lib/scoped.sh | 24 | Scoped find/navigate/grep across 3 scopes × 8 actions |
| 3 | lib/variants.sh | 72 | Hidden/no-ignore variants across 3 scopes × 3 variants × 8 actions |
| 4 | lib/ext.sh | 210 | Extension-filtered commands across 3 scopes × 10 extensions × 7 actions |
| 5 | lib/ops.sh | 24 | File operations across 3 scopes × 8 operations |
| 6 | lib/help.sh | 1 | fzf-help / f-help command browser |
lib/core.sh
Section titled “lib/core.sh”Defines 3 standalone commands that don’t follow the scope pattern:
fh— History search and executefkp— Kill processfbr— Git branch checkout
lib/scoped.sh
Section titled “lib/scoped.sh”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)
lib/variants.sh
Section titled “lib/variants.sh”Extends scoped commands with hidden/no-ignore variants:
-hadds--hiddenflag to fd/rg-niadds--no-ignoreflag-hniadds both flags
lib/ext.sh
Section titled “lib/ext.sh”Generates extension-filtered commands by looping over the _fext associative array. Each extension gets find, nvim, bat, and operation commands.
lib/ops.sh
Section titled “lib/ops.sh”Generates file operation commands (remove, move, copy, rename) for files and directories across all scopes.
lib/help.sh
Section titled “lib/help.sh”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.