lord63 / tldr.py

A python client for tldr: simplified and community-driven man pages.
MIT License
186 stars 18 forks source link

Tab-completion and sanity check for path when using `tldr init' #40

Closed Boruch-Baum closed 6 years ago

Boruch-Baum commented 6 years ago

For tldr init', it would be a polished feature enhancement not to have to manually enter an entire path, and risk a typo error. For example, the program could offer tab-completion of paths, and re-issue a prompt (with scrollable history) if the path entered either doesn't exist or isn't a valid root directory (maybe check for a legitimatepackage.json' file or other indication.

An alternative would be to explicitly warn the user that expansions are not performed or understood.

Just some user-friendly polish.

lord63 commented 6 years ago

Thanks for the suggestion. 🍰

~ will be supported in the future version(not too long, current version is not ready so I use absolute path in the readme).

But interactive selection is not going to supported. Currently tldr.py will check for the repo_path you input