-
Notifications
You must be signed in to change notification settings - Fork 29
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
Feature request: configuration; default values; creating records via CLI; negative ranges #3
Comments
Awesome, thanks heaps for trying around and sharing your thoughts, well appreciated. Config / default valuesA config file is planned, there even is already some code for it. Complementing this with the ability to specify default values for new records is a nice idea that I will happily take on. Default file/folderI was thinking to adapt the idea of “bookmarking” a file in a similar way as it’s done for the MacOS widget: there you can say The notion of an entire folder is very interesting and is something well worth to consider in the longer run, e.g. having some sort of structure where klg-files are automatically sharded into folders and files based on the year and month (e.g. Writing capabilitiesThat’s the next major change after the stable v1.0 release that I intend to work on. Although I have to warn you that it probably will take some time. There are a few tricky challenges to solve, like how to preserve the formatting of a file. Apart from that I want to avoid by all means that people lose data due to some silly bug that occurs when writing the data back to the file. As a first step into that direction I wanted to add a Negative rangesInteresting that you bring that up, I had considered that as well with the exact same syntax that you were suggesting. That’s a good sign on the one hand, on the other I somehow feel that the concept of negative ranges is still a bit strange. I remain open to this, let’s see whether it comes up more often. |
Bookmarking is now available in v1.0 via |
Thanks, I will test it during the next workweek and report back |
I've tested it and already commented on the great feature in #12. I think it might be a good idea to include a directory with lots of test files in the repo. This would make trying out new features and testing a lot easier. On another note: I'm not a huge fan of enforcing a specific file suffix. It really shouldn't make any difference if my file is called |
also I really found myself missing negative ranges. For example during lunch break, I don't want to calculate myself how long I've made a break. Shouldn't be hard to implement, since the basic functionality (duration calculation) is already there. |
another thing I've noticed: I think it would be a nice idea to add |
About the negative ranges:
(Which btw. would become much more convenient once you can do |
Concerning the negative ranges: But of course, that's not a requirement by any means. It would just provide an additional way to express one's personal preferences for time keeping. |
Covered in v1.3:
For further discussion around writing capabilities I have created a dedicated issue: #17 |
have you considered shortening the command to just |
I know it’s faster to type 😸 , however I think – from a logical perspective – an edit command only makes sense in conjunction with a bookmark. (I think no one would do
|
You're right, the edit command would only make sense with a bookmark and that's I would assume. So that |
I came across today that I needed negative ranges for lunch times. Personally I do not use the CLI that often, only when calculating totals. Usually I do Current workarounds are (as suggested above):
This is not a big issue, and comes up rarely. The workarounds are sufficient enough. If this is something you feel reluctant on adding @jotaen, then I think it would not be problem. I believe it is only a bit cumbersome when you enter times manually in a text file. With sufficient tools I think this could be remedied pretty easily (either with |
It should probably be tracked as an issue again, so I created a separate one here: #43 |
I've taken the time to test the release candiate and read the guide and specifications. I really like it, good job!
My main use case would be to track my working time, especially overtime. To make this as convenient as possible, I'd be really happy to have the following features:
~/.klogconf
. In this file I'd like to put a default directory where I keep all my records and my default "should value" and maybe addtional settings. There could even be a mechanism that looks in the local directory for a local config first, should that be necessaryklog in
to create an entry with the default "should value", date, current time and open ended entry, maybe a default tag from the config (also an option to add or omit certain values). Ideally this would automatically choose the right file, like one file for each month in the configured directory.klog out
to create the corresponding value that "closes" the previousklog in
The text was updated successfully, but these errors were encountered: