Skip to content

install: auto-install yazi for tfm.nvim file manager - #16

Merged
xaljer merged 1 commit into
xaljer:mainfrom
Junbo-Zheng:feat/yazi-install
Jul 19, 2026
Merged

xaljer merged 1 commit into
xaljer:mainfrom
Junbo-Zheng:feat/yazi-install

Conversation

@Junbo-Zheng

Copy link
Copy Markdown
Collaborator

Summary

tfm.nvim exposes yazi as a terminal file manager (bound to <Leader>t),
but install.sh never installed yazi, so the feature silently failed on a
fresh bootstrap. Add an install_yazi step that:

  • Skips if yazi is already on PATH.
  • Skips (non-fatal) if cargo is absent, with a hint to install Rust.
  • Installs cargo-binstall for prebuilt binaries, then yazi-fm/yazi-cli.
  • Forces the musl static target on Linux x86_64/aarch64, because the
    prebuilt GNU build needs GLIBC_2.39 (absent on Ubuntu 22.04).

README's prerequisites table and the bootstrap blurb are updated to list
yazi.

Impact

  • Users: New -- a fresh ./install.sh install now provides yazi so
    <Leader>t works out of the box. Existing users with yazi already on
    PATH are unaffected (skip path).
  • Build: None.
  • Hardware: None.
  • Documentation: README prerequisites and quick-start blurb updated.
  • Security & Compatibility: None -- installs a public upstream binary
    via cargo-binstall; non-fatal on any failure.

Testing

Ran ./install.sh install on Ubuntu 22.04 (x86_64, glibc 2.35):
cargo-binstall installed, yazi-fm/yazi-cli fetched the musl build,
yazi --version resolves on PATH, and <Leader>t opens yazi inside nvim.
Re-running skipped yazi (yazi already in PATH). macOS path not exercised
in this session (default target path, untested).

Signed-off-by: Junbo Zheng <3273070@qq.com>

tfm.nvim is configured with file_manager = "yazi", so <Leader>t
fails without the yazi binary. Add an install_yazi step that fetches
prebuilt musl binaries via cargo-binstall (glibc-safe on older
distros), and list yazi in the README prerequisites.

Assisted-by: Claude Code (glm-5.2) <claude@anthropic.com>
Signed-off-by: Junbo Zheng <3273070@qq.com>
@xaljer
xaljer merged commit a08a1e4 into xaljer:main Jul 19, 2026
3 checks passed
@Junbo-Zheng
Junbo-Zheng deleted the feat/yazi-install branch July 19, 2026 15:26
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.

2 participants