VibeHunt
Back to browse

fz

Seamless fuzzy tab completion for z.

Source

The plugin extends the directory‑jumping tool z by integrating fuzzy search into its tab‑completion mechanism. When a user types `z` (or the optional `zz` for sub‑directory‑limited searches) and presses Tab, the plugin invokes fzf to filter the list of historically visited directories, allowing navigation with Tab, Shift‑Tab, Ctrl‑n/p, or Ctrl‑j/k and selection with Enter. It respects z’s existing syntax and can be customized via environment variables such as command names, case sensitivity, and home‑directory abbreviation.

It is intended for users of Bash or Zsh who already employ z (or compatible variants like z.lua) and want a more forgiving, interactive way to select a target directory without learning new key bindings. The plugin works out‑of‑the‑box after sourcing its script, provided that both z and fzf are installed.

Installation consists of installing fzf (e.g., via Homebrew or cloning its repository), obtaining the z and fz scripts, and sourcing them from the shell’s initialization file. The plugin can be managed with tools like zplug or Fig, and it supports optional features such as disabling subdirectory traversal or case‑insensitive matching through simple environment flags.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps