DEV Community

Discussion on: Create an Interactive Bash Command for searching and checking out Git Branches on the Terminal using fzf

Collapse
 
kantord profile image
Daniel Kantor

I wonder if there's a way to hack some "previews" for the branches/refs.

I imagine sth like

# Branch name
Created: 16 April 2020
Updated: 18 May 2020

Authored: Albert Alises, John Doe, Mary Jane

Commits:
4as4d234 Lorem ipsum
5fg4hz32 Dolor sit amet

Afaik fzf requires actual files for previews, but those files could be generated periodically by a script, which would have the added benefit of being able to run git fetch --all in the script, and thus never having to fetch before changing branches.