# 使用 Homebrew, Nix 安装 zf

查看 zf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:zf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zf
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#zf
```

  证据: nixpkgs package indexes: pkgs/by-name/zf/zf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:zf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zf>
- **版本:** 0.10.4
- **来源摘要:** Command-line fuzzy finder that prioritizes matches on filenames
- **主页:** <https://github.com/natecraddock/zf>
- **仓库:** <https://github.com/natecraddock/zf>
- **许可证:** MIT
- **源码归档:** <https://github.com/natecraddock/zf/archive/refs/tags/0.10.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- zf (cli)
- zf (别名)

## 构建依赖

- zig@0.15

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10.4
- 本地数据: OK
- 上游仓库: https://github.com/natecraddock/zf
- 检测到的最新版本: 0.10.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

zf is a command-line fuzzy finder and Zig/C fuzzy-ranking library designed around a common developer workflow: filtering file paths where the basename usually matters more than parent directories.

### 项目历史

Nathan Craddock describes zf as coming from frustration with existing fuzzy finders ranking the intended file below path matches. In 2021 he began experimenting with filename-prioritized matching, later separating the ranking idea from a Neovim file picker so it could be used as a standalone command and library.

### 使用方式

zf reads newline-separated candidates from stdin and writes selected candidates to stdout, so it fits the same shell slot as tools like fzf. Its key behavior is ranking filename matches ahead of full-path matches, adding strict path matching when the query contains path separators, and supporting whitespace-separated query tokens for narrowing results.

### 为什么软件包爱好者会关心

zf matters in package catalogs as a deliberately narrower fuzzy finder: it does not try to out-feature fzf, but packages one ranking opinion that is useful enough to be reused in editors, shell pipelines, and libraries.

### 时间线

- 2021: The author starts experimenting with filename-prioritized fuzzy matching after repeated file-search ranking misses.
- 2023-03-17: The author publishes a design write-up explaining zf, strict path matching, and the standalone tool/library direction.

### Related projects

- fzf and fzy are the comparison points used in the author write-up.
- telescope-zf-native.nvim reuses the zf ranking idea inside Neovim Telescope.
- nvim-find was an earlier Neovim file finder by the same author that helped motivate extracting the algorithm.

### 来源

- <https://github.com/natecraddock/nvim-find>
- <https://github.com/natecraddock/telescope-zf-native.nvim>
- <https://github.com/natecraddock/zf>
- <https://nathancraddock.com/blog/a-different-approach-to-fuzzy-finding/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** zf
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - zf: normalized package name match | nixpkgs package indexes: pkgs/by-name/zf/zf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [fuzzy-find](https://pkg.so/zh-hans/brew/fuzzy-find/) - Shares pkgdb curated category or tags: cli, developer-tools, file-search, fuzzy-finder.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [libarchive](https://pkg.so/zh-hans/brew/libarchive/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [ada-url](https://pkg.so/zh-hans/brew/ada-url/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [fzf](https://pkg.so/zh-hans/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, fuzzy-finder.
- [sk](https://pkg.so/zh-hans/brew/sk/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, finder, fuzzy.
- [fjira](https://pkg.so/zh-hans/brew/fjira/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, finder, fuzzy.

## Combined YAML source

View the package source record on GitHub. [combined/zf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
