Why Unified
In typical zsh setups, fzf integrations accumulate across three or four separate plugins and config snippets:
zsh-fzf-history-searchforCtrl-Reval "$(fzf --zsh)"forCtrl-T,Alt-C, and its ownCtrl-R/Tabfzf-tabforTabcompletion- Scattered
zstylerules and ad-hoc preview snippets
Because they bind overlapping keys (Tab, Ctrl-R, Up/Down), whichever plugin loads last wins silently. Changing plugin order or adding a keymap breaks bindings without warning.
What zsh-fzf-unified Solves
- Single source of truth with explicit precedence:
fzf --zshbindsTabandCtrl-Rfirst; vendoredfzf-tabrebindsTab;zsh-fzf-unifiedrebindsCtrl-RandCtrl-Gacrossemacs,viins, andvicmdand installs hybridUp/Downarrow widgets. See Architecture & Precedence. - Multiline history as a first-class case: History entries are framed with
NUL(--read0) so embedded newlines never leak into picker rows, andUp/Downmove the cursor between lines inside multiline buffers instead of jumping straight into history. See Ctrl-R History Search. - Consistent visuals and universal previews: Every fzf surface shares
FZF_DEFAULT_OPTSand gets contextual or content previews — directories, git status, symlinks, images, archives, highlighted code, hex dumps, git commits, SSH config, env vars, processes, and grep matches. See Previews & fzf-tab Contexts. - Idempotent loading: Sourcing the plugin more than once (e.g. second keymap or manual
source) is a safe no-op (zfz_loaded), and withoutfzfonPATHit exits cleanly as a no-op.