joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.45k stars 423 forks source link

[Feature request] Provide rendering for any file when it's the only markdown file of the specified directory #242

Open teobais opened 7 years ago

teobais commented 7 years ago

I know, it's a bit unclear, so, let me get it straight.

Currently, grip runs only for files named as README.md or if you wanna specify the specific file name you want to render, you have to provide an extra argument, like grip test.md.

However, wouldn't it be nice if we could extend it, so that it also renders a markdown file, when it is the only markdown file in its directory?

Example: /path/to/my/project |-- hello.js |-- hello.css |-- me.jpg |-- test.md

Shouldn't we also let the user directly render the test.md by just running grip under /path/to/my/project directory, instead of forcing him to explicitly run grip test.md?

vsag96 commented 5 years ago

+1 I actually was about to raise this issue and have seen this has been lying around for a year now, @joeyespo are PR'S welcome for this request or would is too special that it breaks the norm?