You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tend to have a one .klg file per project to track the amount of time I've spent on it. While bookmarks is a nice feature, it's also kind of repetitive having to specify it over and over again. It would be nice if you could implicitly tell klog what file to use through an environment variable. This goes really well together with direnv.
This would allow me to create a .envrc file in the root of my project, add export KLOG_FILE=./proj.klg to it and let direnv automatically export it for me. klog would then automatically pick up the KLOG_FILE environment variableif it were present.
What do you think?
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, I didn’t know about direnv.
I have to admit, I’m slightly reluctant to add more ways to specify input, in order to keep the complexity contained. I wouldn’t rule it out, but I probably have to think more about it.
it's also kind of repetitive having to specify it over and over again
Do you mean it’s repetitive to type the bookmark name when using it, or to set it up in the first place? Personally, I always assign two-letter bookmark names, e.g. @hw for housework.klg. I’m also hoping for klog to support shell completion soon, which would help to speed up the typing as well. (Unfortunately, that’s currently blocked on an issue with a third-party library.)
Repository owner
locked and limited conversation to collaborators
Jul 19, 2022
I tend to have a one
.klg
file per project to track the amount of time I've spent on it. While bookmarks is a nice feature, it's also kind of repetitive having to specify it over and over again. It would be nice if you could implicitly tell klog what file to use through an environment variable. This goes really well together with direnv.This would allow me to create a
.envrc
file in the root of my project, addexport KLOG_FILE=./proj.klg
to it and let direnv automatically export it for me. klog would then automatically pick up theKLOG_FILE
environment variableif it were present.What do you think?
The text was updated successfully, but these errors were encountered: