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

Option to show the original page when custom page/patch exists #367

Open
brainwo opened this issue Jun 10, 2024 · 3 comments
Open

Option to show the original page when custom page/patch exists #367

brainwo opened this issue Jun 10, 2024 · 3 comments

Comments

@brainwo
Copy link

brainwo commented Jun 10, 2024

Perhaps something like tldr --original git to render the original file, or tldr --path git to show where git.md file is located. This is useful when working with a patch.

@niklasmohrin
Copy link
Collaborator

I suppose this would be covered by #306? With an environment variable, you could env TEALDEER_PAGE_PATH=/ TEALDEER_PATCH_PATH=/ tldr ..., or whatever syntax we come up with there. Is there any motivation for a separate option?

@brainwo
Copy link
Author

brainwo commented Jun 12, 2024

I was thinking of a way to easily generate diff.

diff <(tldr git) <(tldr --original git)

But I guess if we go with only supporting environment variable that would be something like this?

diff <(tldr git) <(TEALDEER_PAGE_PATH=/ tldr git)

@niklasmohrin
Copy link
Collaborator

To be honest, I think the use case is very niche. Currently, I would prefer to not add extra settings as in your initial suggestion, but we can leave this issue open for some time and see from the reactions if more people would be interested

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

No branches or pull requests

2 participants