Feature request: configuration; default values; creating records via CLI; negative ranges #394
Replies: 15 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. |
Beta Was this translation helpful? Give feedback.
-
|
Bookmarking is now available in v1.0 via |
Beta Was this translation helpful? Give feedback.
-
|
@wAuner, if you like you can try out |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, I will test it during the next workweek and report back |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
another thing I've noticed: I think it would be a nice idea to add |
Beta Was this translation helpful? Give feedback.
-
About the negative ranges: (Which btw. would become much more convenient once you can do |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
Covered in v1.3:
For further discussion around writing capabilities I have created a dedicated issue: https://github.com/jotaen/klog/issues/17 |
Beta Was this translation helpful? Give feedback.
-
|
have you considered shortening the command to just |
Beta Was this translation helpful? Give feedback.
-
|
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
|
Beta Was this translation helpful? Give feedback.
-
|
You're right, the edit command would only make sense with a bookmark and that's I would assume. So that |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
It should probably be tracked as an issue again, so I created a separate one here: https://github.com/jotaen/klog/issues/43 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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 into 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 outto create the corresponding value that "closes" the previousklog inBeta Was this translation helpful? Give feedback.
All reactions