Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.cheat directories should be searched for recursively #602

Open
kapad opened this issue Nov 10, 2020 · 1 comment
Open

.cheat directories should be searched for recursively #602

kapad opened this issue Nov 10, 2020 · 1 comment

Comments

@kapad
Copy link

kapad commented Nov 10, 2020

Is your feature request related to a problem? Please describe.
Cheat only searches the current directory for a .cheat directory.

Describe the solution you'd like
cheat should search the directory hierarchy for .cheat directories. This scope could be limited to say, search the directory hierarchy until $HOME and no further.

Describe alternatives you've considered
I've found cheat useful in project directories, but documentation of this sort works only if I am in the root of my project. I would like this to work even if I am in a sub directory without having to cd to my project root.

@kapad kapad changed the title .cheat directories should be searched for recursively .cheat directories should be searched for recursively Nov 10, 2020
@chrisallenlane
Copy link
Member

Hi, @kapad

Yeah, I've been annoyed by this behavior myself. I'm in favor of changing it.

In the near-term I'll be refactoring how cheat loads cheatsheets while addressing some tangentially-related tickets. I'll tackle this at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants