charmbracelet / glow

Render markdown on the CLI, with pizzazz! 💅🏻
MIT License
16.38k stars 360 forks source link

It's surprising that markdown files that are .gitignor'ed are not shown by default (and slightly annoying) #650

Closed skatkov closed 1 month ago

skatkov commented 1 month ago

Is your feature request related to a problem? Please describe. Really love 2.0 release! Plenty of cool improvements packaged, some features I never used removed -- it's awesome.

But there is one thing, that caused a lot of confusion and took me at least an hour of nervously looking through source code to figure out what happened.

My confusion has been caused by these lines for code https://github.com/charmbracelet/glow/blob/master/ui/ui.go#L345-L349

The fact, that .gitignored markdown files are not shown anymore by default. This was not the case before, because I actively used previous version of glow to review files that have been .gitignored.

I might have missed a note/change about it and this might be my fault.

Describe the solution you'd like It's particularly annoying, that now I have to pass --all/-a flag to do what I did before without that. I don't feel that this is a good default behavior.

But it would be nice if there was an option to permanently change this behavior through glow.yml

As example with following setting:

all: true

Describe alternatives you've considered Switch default behavior to show all files.