wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Add a preview to _forgit_clean #383

Closed sandr01d closed 2 months ago

sandr01d commented 2 months ago

Check list

Description

gclean is the only command that does not display a preview. I sometimes find myself exiting gclean just to check the content of a file before deleting it. Being able to have a last peek at a file before removing it does sound like a good idea in general to me.

Type of change

Test environment

sandr01d commented 2 months ago

FYI: I've added a preview for directories now as well (before this you'd see an unwanted error message when trying to preview a directory). Looks like this when tree is installed

image

Otherwise like this:

image

Feel free to give this another review if you like. Will keep testing this for a few days.