Skip to content

Document the fzf version floor; stop naming brew on Linux - #48

Merged
devcodes9 merged 2 commits into
mainfrom
fix/fzf-hint
Aug 22, 2026
Merged

Document the fzf version floor; stop naming brew on Linux#48
devcodes9 merged 2 commits into
mainfrom
fix/fzf-hint

Conversation

@devcodes9

Copy link
Copy Markdown
Owner

Two messages — the installer note and the runtime fallback — told people to run brew install fzf. On Linux, where someone without fzf most likely is, that is wrong information. Both now link to fzf's installation page, which is correct on every platform and does not go stale.

The more useful finding: the version floor was undocumented. agsearch binds fzf's start event, which was added in fzf 0.35.0. Anything older fails with unknown event: start, and some distributions still package below that.

For reference, this follows what comparable tools do rather than inventing something:

tool approach
zoxide links to fzf's install page, states a minimum version
forgit links out, states a minimum version, points at fzf's own installer when the distro package is too old

Neither enumerates per-distro commands, because that means owning someone else's install instructions.

7 insertions, 4 deletions across three files. 101 tests pass.

Both places that mention fzf assumed Homebrew. The person most likely to read
them is on Linux without fzf, where 'brew install fzf' is simply wrong and
'see the fzf homepage' means going to read a page instead of running a line.

install.sh and the runtime fallback now detect the package manager present and
print the exact command; both also offer fzf's own installer for anyone without
sudo. Printed, never run: installing system packages needs sudo, and a piped
installer that sudos is the reason people distrust piped installers.

The README's non-brew section lists the four commands rather than linking out.

Preferring brew when both exist is deliberate: on a box with Linuxbrew and apt,
brew installs without sudo.
Two messages told people to run 'brew install fzf'. On Linux, where the person
without fzf most likely is, that is wrong information. Both now link to fzf's
installation page, which is correct everywhere and does not go stale.

More importantly, the floor was undocumented. agsearch binds fzf's 'start'
event, added in fzf 0.35.0, so anything older fails with 'unknown event:
start'. Some distributions still package below that.

zoxide and forgit both link out and both state a minimum version. This does
the same rather than carrying a per-distro table that ages.
@devcodes9
devcodes9 merged commit b4f7f47 into main Aug 22, 2026
6 checks passed
@devcodes9 devcodes9 mentioned this pull request Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant