Skip to content

Releases

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 06 Nov 08:48

rfig v0.3.1 adds nested help-based completion across zsh, Bash and Fish, and improves upgrades and terminal output handling.

  • rfig analyze <command> walks declared subcommands breadth first to leaf commands, with per-path caches, no fixed depth limit, serial sandboxed probes, and repeated-parent detection.
  • Subcommand groups can use cached children when existing definitions return only filesystem fallback. Empty results can use the cache; native dynamic leaf arguments remain available.
  • Completion diagnostics no longer corrupt the editing line or become candidate rows.
  • Homebrew setup links shell adapters to the stable opt path, so a package upgrade updates scripts for new shell sessions. Run the new setup once per configured shell to migrate older copied adapters.
  • Improved help parsing, Bash generated-definition loading, and test process cleanup.

Upgrade

brew update
brew upgrade tamia6/tap/rfig
# Once when migrating a pre-v0.3.1 copied adapter:
"$(brew --prefix rfig)/bin/rfig" setup --shell zsh
# Use bash or fish for other configured shells, then open a new session.
rfig analyze cf

Keep a single installation method. If an old ~/.local/bin/rfig shadows Homebrew, back it up and remove that duplicate executable before using the Homebrew installation. History and usage data are retained.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 10:53

History is now an explicit menu choice

  • History suggestions appear as the first menu row, marked ◷; inline gray text has been removed.
  • Enter executes only the actual input. It never implicitly accepts history or a highlighted candidate.
  • Use ↑ / ↓ to select a row and → at the end of the line to insert it without executing. A history row fills the entire command; ordinary candidates complete the current word.
  • Ctrl+E moves to the end of the line without accepting anything.
  • History remains scoped to the working directory and typed prefix. Ordinary completion candidates still use only the actual input, and keep their ① ② ③ usage markers.
  • The behavior is aligned across zsh, Bash and Fish. Refs #5.

Path completion fixes

  • Preserve absolute and relative path prefixes, including /, ./, ~/, escaped spaces, nested directories and option-value paths such as --path=….
  • Retain directory slashes when inserting native zsh completions.
  • Preserve a user-typed home expansion in the Bash/Fish editor without expanding literal or quoted tilde candidates.
  • These are shared path-handling fixes, without command-name special cases. Refs #6.

Upgrade

Homebrew Tap users:

brew update
brew upgrade tamia6/tap/rfig
"$(brew --prefix rfig)/bin/rfig" setup

For a prebuilt binary, download the archive for your platform, extract it and run the included install.sh. Open a new shell session after setup. If multiple installations coexist, check command -v rfig to confirm which executable is active.

Verification and known limitation

The full macOS and Docker shell matrices were run. All new history-menu and path cases passed. The existing zsh slow-native-completion input-blocking test still fails; native zsh providers can block input while running. Detailed results are retained in docs/testing/history-menu-2026-10-29/.

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 22 Oct 02:14

Fixes

  • Complete subcommand discovery for CLIs whose short help advertises a full help --all reference, including ocx and invocation aliases.
  • Preserve existing completion caches when a full-reference refresh fails or times out.
  • Correct macOS/Linux process-table parsing in the test cleanup helper and register cleanup during shell fixture setup.
  • Require complete regression coverage in project development rules.

Verification

15 Rust unit tests passed. Full local regression passed 25 of 26 suites; Docker passed 46 of 47 suites across Bash 4.4/5.2, Fish 3.6 and zsh 5.9. Both remaining failures are the existing zsh slow-provider input-blocking case. Real ocx and opencodex caches were checked against all 68 top-level reference commands.

Packages

Each archive contains the binary, a shared install.sh, shell adapters, the target manifest and checksums. Available for macOS universal, Linux x86_64 and Linux aarch64.

Install or upgrade with Homebrew and refresh integration:

brew update
brew upgrade rfig
rfig setup

Refresh a command's cached candidates with rfig analyze <command>.

Full changelog: v0.2.1...v0.2.2

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 19 Oct 12:38

Highlights

  • Stabilized prompt rendering in narrow terminals and multiline dynamic prompts.
  • Preserved prompt state across scrolling, resizing, selection and command execution.
  • Fixed zsh array element handling in ranking and history suggestions.
  • Added generic parsing for help sections such as SUBCOMMANDS, fixing missing subcommands for tools including tailscale.
  • Ensured real-shell tests clean up tmux sessions, test shells and rfig edit processes after failures.

Platforms

  • macOS universal (Apple Silicon and Intel)
  • Linux x86_64
  • Linux aarch64
  • zsh, Bash 4.4+, Fish 3.6+

Install

brew install tamia6/tap/rfig
rfig setup

Or download an archive from the assets below and run install.sh inside it.

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Oct 16:30

新增与改进

  • 支持 zsh、Bash 4.4+、Fish 3.6+ 的补全菜单和历史命令自动建议。
  • 按工作目录匹配历史,自动建议与实际输入分离,支持使用习惯排序。
  • 新增 Linux x86_64 / ARM64 二进制,安装脚本自动检查平台与架构。
  • 安装后串行优化补全;Linux 帮助探测使用 Landlock + seccomp 隔离。
  • 改进 zsh 特殊字符候选插入,更新 README 和终端演示动画。

安装

下载对应系统的压缩包,解压后执行其中的 sh install.sh。包内包含二进制和安装脚本,无需安装 Rust。

Homebrew:

brew install tamia6/tap/rfig
rfig setup

已有 Homebrew 安装:

brew update
brew upgrade rfig
rfig setup

可用 rfig setup --shell zsh、rfig setup --shell bash 或 rfig setup --shell fish 分别启用集成,然后打开新会话。

Linux 预编译包要求 glibc 2.36+。后台帮助探测需要 Landlock ABI 3+ 和可用的 seccomp;环境不满足时保留菜单、历史和现有补全定义。

完整改动:v0.1.2...v0.2.0

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 24 Sep 08:06

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 24 Sep 07:36

Full Changelog: v0.1.0...v0.1.1