-
Notifications
You must be signed in to change notification settings - Fork 28
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 switch command that stops a running timer and starts a new timer #74
Comments
Thanks for your feedback and detailed suggestions! 🎉 The closest to something like “projects” is currently the
Regarding the idea of “projects” (and adding more functionality around that) I unfortunately have to say I think it’s out of scope for integrating into the core of klog. The way people organise their files is subject to very individual workflows. In the spirit of UNIX (“do one thing, do it well”) my current thinking is to make/keep klog as generic tool for interacting with |
A switch functionality is out of scope for klog, unfortunately. Below is an idea, though, how such a workflow could be made happen. The next release will add support for multiple bookmarks, as briefly illustrated here. (The docs will also be updated with more info after the release.) Based on that, users could write a shell script that achieves the same effect and can be customised to their own workflow. E.g.:
|
Time permitting, it might be helpful if there was a "contribs" directory with examples of simple scripts like this, so people know that workflows like this are possible. |
The “extending” section of the documentation website roughly covers this, but it’s more of a general overview. If I have time, I might add a more concrete example there, to illustrate the possibilities better. I’m also happy to link tools or helper scripts made by other users, by the way. |
Hi,
first of all great tool, I think plain text as database is heavily underrated and a huge pro for considering to use klog.
As I am working on different projects per day, it would be convenient if I can simply stop tracking time for the current project and start tracking time for another project.
Currently the following steps are necessary to switch from one timer to another:
A simple
klog switch 2.klg
would simplify this workflow.However, additional work and clarification is needed:
Possible solution: klog maintains a running timers file (e.g.
/home/$user/.klog
where the path to the .klg file is added when the timer starts and removed when the timer is stoppedEdit:
Another possibility that arises from keeping track of running timers is that you easily query a list of running timers.
For instance something like that:
However klog can only display the status for timers that have been started with klog. Maybe time sheets can be registered at klog, for keeping track of them (or entire directories)?
But that would be another task :)
Thanks!
Regards
The text was updated successfully, but these errors were encountered: