tealdeer-rs / tealdeer

A very fast implementation of tldr in Rust.
https://tealdeer-rs.github.io/tealdeer/
Apache License 2.0
4.17k stars 123 forks source link

Add custom pages to list output #285

Closed Olavhaasie closed 2 years ago

Olavhaasie commented 2 years ago

Fix #205

I have added custom pages to the output of list by reading from the custom_pages_dir from the config and walking that directory for any pages. This also includes custom pages in the autocompletion.

This is my first contribution, so please let me know if something has to be changed or added :innocent:

Olavhaasie commented 2 years ago

Thanks for the useful feedback! It really reduced the complexity of the code and I learned something new. As you said I also applied some changes to the already existing code, similar to the ones you suggested. Also, I added a test case for listing custom pages.