wfxr / forgit

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

`[]` in a file name brakes the preview window #353

Closed clenemt closed 4 months ago

clenemt commented 4 months ago

Check list

Environment info

Problem / Steps to reproduce

image

Sadly this is becoming very common file names due to remix/next and other frontend frameworks with file based routing. https://nextjs.org/docs/pages/building-your-application/routing/dynamic-routes

Thanks 🙇

sandr01d commented 4 months ago

Hi @clenemt, thanks for bringing this to our attention. I can reproduce the issue with forgits diff and log commands and implemented a fix in #354. Are you experiencing this with any other commands aswell?

clenemt commented 4 months ago

Amazing! Fast and responsive 🙇 I will try when the fix is out and let you know asap!

sandr01d commented 4 months ago

Alright, thanks. Will be closing this issue for now but please feel free to report back here or reopen it should the issue not be resolved.