Skip to content

fix(docs): correct fzf integration example - #108

Merged
unhappychoice merged 1 commit into
mainfrom
fix/fzf-integration-example
Nov 26, 2025
Merged

unhappychoice merged 1 commit into
mainfrom
fix/fzf-integration-example

Conversation

@unhappychoice

@unhappychoice unhappychoice commented Nov 26, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • gitlogue is a TUI app that cannot run inside fzf's preview window
  • Changed to use git show --stat for preview
  • Use --bind 'enter:become(...)' to launch gitlogue on selection

Fixes #107

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Consolidated commit-browser instructions into a single "glf" workflow that launches commit view on selection.
    • Preview now shows commit statistics instead of full diffs for faster overview.
    • Selection activation changed to Enter to open commit view.
    • "Specific commit" flow updated to use selection-driven launch.
    • Added "By date range" option in the Advanced menu.
    • "By author" flow now launches the commit view for the chosen author.

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

@coderabbitai

coderabbitai Bot commented Nov 26, 2025 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@unhappychoice has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 20 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 6c94bc4 and ca748da.

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

Walkthrough

Consolidated fzf examples into a single glf flow: previews now use git show --stat --color=always {1}, Enter triggers gitlogue --commit {1} via a become action, and added fzf-driven "By date range" and "By author" options that invoke glf --since and gitlogue --author respectively.

Changes

Cohort / File(s) Summary
Documentation update
docs/usage.md
Replaced separate Basic Commit Browser and Interactive Commit Viewer with a single glf example; changed preview to git show --stat --color=always {1}; changed selection binding from ctrl-g execute to Enter become gitlogue --commit {1}; replaced awk parsing path with fzf selection triggering gitlogue --commit {1}; added "By date range" fzf option using glf --since prompt; updated "By author" to run gitlogue --author "$author" on selection; added/updated Usage examples.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant User
  participant glf as fzf (glf wrapper)
  participant Shell
  participant Git
  participant Gitlogue

  Note over User,glf `#D6EAF8`: User runs `glf` (interactive fzf menu)
  User->>glf: choose list type (commits / by author / by date)
  alt Commit selection
    glf->>Shell: preview -> `git show --stat --color=always {1}`
    Shell->>Git: git show --stat --color=always <commit>
    Git-->>glf: stat output (rendered in preview)
    Note right of glf `#E8F8F5`: User presses Enter
    glf->>Shell: become -> `gitlogue --commit {1}`
    Shell->>Gitlogue: gitlogue --commit <commit>
    Gitlogue-->>User: open selected commit
  else By author / By date
    glf->>User: prompt (author name / date range)
    User->>glf: selects author or enters date range
    glf->>Shell: run `gitlogue --author "$author"` or `glf --since "<range>"`
    Shell->>Gitlogue: gitlogue invoked with filters
    Gitlogue-->>User: show filtered commits
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify shell quoting and fzf --preview / become binding syntax in docs/usage.md.
  • Confirm git show --stat --color=always {1} and glf --since examples render and prompt correctly across common shells.

Poem

🐇
I hopped through lines both near and far,
Now stats parade instead of tar.
Enter springs — the commit takes flight,
Authors, dates, all in sight.
A joyful hop through git tonight.

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(docs): correct fzf integration example' directly relates to the main change: updating the documentation examples to fix the broken fzf integration that was causing the 'Loading...' issue.
Linked Issues check ✅ Passed The PR successfully addresses issue #107 by replacing the non-functional preview command with git show --stat and using enter:become binding to launch gitlogue on selection instead of in the preview window.
Out of Scope Changes check ✅ Passed All changes are scoped to fixing the fzf integration examples in documentation. The modifications to preview content, bindings, and the addition of new examples (By date range, By author) are all directly related to resolving the documented issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

@unhappychoice
unhappychoice force-pushed the fix/fzf-integration-example branch 2 times, most recently from 2348c59 to 6c94bc4 Compare November 26, 2025 09:25
gitlogue is a TUI application that cannot run inside fzf's preview
window. Changed the example to:
- Use `git show --stat` for preview
- Use `--bind 'enter:become(...)'` to launch gitlogue on selection

Fixes #107

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

Co-Authored-By: Claude <[email protected]>
@unhappychoice
unhappychoice force-pushed the fix/fzf-integration-example branch from 6c94bc4 to ca748da Compare November 26, 2025 09:28
@unhappychoice
unhappychoice merged commit d058a54 into main Nov 26, 2025
@unhappychoice
unhappychoice deleted the fix/fzf-integration-example branch November 26, 2025 09:29
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