Skip to content

fix: update fzf and VHS examples for better compatibility - #109

Merged
unhappychoice merged 1 commit into
mainfrom
fix/fzf-vhs-docs
Nov 26, 2025
Merged

unhappychoice merged 1 commit into
mainfrom
fix/fzf-vhs-docs

Conversation

@unhappychoice

@unhappychoice unhappychoice commented Nov 26, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • Replace fzf become action with variable capture approach to fix "Failed to initialize input reader" errors on macOS
  • Fix VHS tape example to use semicolon for reliable FINISHED marker output

Changes

  • fzf integration: The become action can cause terminal initialization issues when launching TUI apps on some systems. Changed to capture commit hash in a variable first, then launch gitlogue.
  • VHS example: Use ; instead of && to ensure the FINISHED marker is always printed (even if gitlogue exits with non-zero status).

Test plan

  • Test glf function on macOS
  • Test VHS tape recording

Fixes #107

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated usage examples with refined command sequences and streamlined commit selection workflows to enhance clarity and improve usability guidance.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Nov 26, 2025 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

Walkthrough

Updates documentation examples in docs/usage.md to fix fzf-based commit selection helpers. Changes the commit extraction approach from direct field binding to a two-step process using awk, ensuring gitlogue is only invoked with valid, non-empty commit hashes. Adjusts command invocation patterns for the "Browse commits" and gitlogue-menu functions.

Changes

Cohort / File(s) Summary
Documentation Examples Update
docs/usage.md
Updates fzf commit selection examples to extract commit hash via awk before invoking gitlogue, replacing direct field binding with conditional two-step invocation pattern for both "Browse commits" (glf) and gitlogue-menu functions

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Review focuses on verifying example correctness: commit extraction via awk, proper shell syntax in the two-step invocation, and consistency across multiple function examples
  • Validate that the new pattern resolves the reported "Loading..." issue by ensuring gitlogue receives properly formatted commit hashes

Possibly related PRs

Poem

🐰 A rabbit hops through docs so deep,
Where fzf selections used to weep,
With awk and caution, commit hash in hand,
Now gitlogue works as once was planned!
No more "Loading..." haunts the screen,
A two-step dance, precise and clean. 🎉

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/fzf-vhs-docs

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 92aa40c and dbc5fb8.

📒 Files selected for processing (1)
  • docs/usage.md (3 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- fzf: Replace `become` action with variable capture approach
  The `become` action can cause "Failed to initialize input reader"
  errors on some systems (e.g., macOS) when launching TUI apps
- VHS: Use semicolon instead of && for command chaining
  Ensures FINISHED marker is printed even if gitlogue exits non-zero

Fixes #107

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@unhappychoice
unhappychoice merged commit 84f77c5 into main Nov 26, 2025
@unhappychoice
unhappychoice deleted the fix/fzf-vhs-docs branch November 26, 2025 10:42
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.

Use case from the documentation does not work

1 participant