Add switch command that stops a running timer and starts a new timer #377
Replies: 4 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 |
Beta Was this translation helpful? Give feedback.
-
|
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.:
|
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.klgwould simplify this workflow.However, additional work and clarification is needed:
Possible solution: klog maintains a running timers file (e.g.
/home/$user/.klogwhere 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
Beta Was this translation helpful? Give feedback.
All reactions