-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add cache directory (or tldr checkout directory) to config #156
Comments
We could also consider just unpacking the tldr repo directly into the |
Hopefully #212 will fix this issue :). |
Right now, the cache directory is expected to be a cache under the control of tealdeer. This is shown for example in the PR #206, where we are adding a migration that renames the checkout directory, and - if both exist - deletes the old directory. If we add the option to externally manage the tldr repo checkout, then enabling this feature should disable all cache management functionality in tealdeer to avoid conflicts. However, that shouldn't be the same as configuring the cache directory. The directory layout inside the cache directory is not an API, and I do not want to guarantee a specific structure. I do agree that TLDR:
|
G'day. I use a couple different tldr clients, and so rather than maintaining multiple caches I just keep my own git checkout around and updated regularly.
I can get tealdeer to use that by way of
export TEALDEER_CACHE_DIR="${HOME}/var/cache"
and naming the checkouttldr-master
under it. Which is kind of ugly, but whatever.It'd be great if I could just add
cache = ~/var/cache
(or, better,tldr = ~/var/cache/tldr
) to the config.toml and never have to worry about the environment variable again. (in the second example, that'd be the path to the directory with the content, so that you didn't need append anything to the directory to get the page root.)The text was updated successfully, but these errors were encountered: