Skip to content

Scoped Commands

f + {scope} + {action}

Where {scope} is c (cwd), r (repo root), or g (global/home).

Actioncwd (c)repo (r)global (g)Description
Find filefcffrffgfSelect a file with fzf
Find directoryfcdfrdfgdSelect a directory with fzf
Open in nvimfcnfrnfgnFind and open in nvim
Preview with batfcbfrbfgbFind and preview with bat
cd with zoxidefczfrzfgzSmart cd with zoxide
GrepfcgfrgfggSearch content with rg + fzf
Grep + batfcgbfrgbfggbGrep and preview match with bat
Grep + nvimfcgnfrgnfggnGrep and open match in nvim
  • c (cwd) — Searches from the current working directory (.)
  • r (repo) — Searches from the git repository root. Falls back to . if not inside a git repo
  • g (global) — Searches from $HOME

The scope is resolved at runtime by the _fscope helper:

Terminal window
_fscope() { case $1 in c) echo .;; r) _frroot;; g) echo "$HOME";; esac; }