Manipulating files (start, stop, etc.) #387
Replies: 7 comments
-
|
These are great ideas! Here are my suggestions/questions:
|
Beta Was this translation helpful? Give feedback.
-
|
And as you already said, it's important to keep the data in tact. Maybe a little backup mechanism could be added, e.g. whenever a change is performed on |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
The work on this is mostly done, I’ll release it throughout the next days. I have some bad news about templates though: they are still hidden and I’m seriously considering to ditch them. With the new commands you could effectively replace them with a bash alias: I’ve realised that I find the idea of templates a bit too heavy-weight for the benefit it brings. For the time being the templates feature is still around, though ( |
Beta Was this translation helpful? Give feedback.
-
|
Very happy with v2.0, thank you. I wonder whether you'd consider a syntax like this: Where the comment is the free-text alongside the entry, including hashtags etc. I currently am using a keyboard shortcut which writes directly to my KLG file, that allows me to write in some free-text in a dialog box. I'd like to use the API for this, but I think I can't do that currently. |
Beta Was this translation helpful? Give feedback.
-
|
It’s not possible to make But I agree that specifying a summary text should be possible, so: https://github.com/jotaen/klog/issues/36 |
Beta Was this translation helpful? Give feedback.
-
|
Hm, I'll have to try it first, but I use the template every day and think it is a great feature. |
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.
-
The next major feature for the klog CLI is the capability to write into files, and not just to read or evaluate them. This ticket is used to track the progress on this topic and also discuss ideas, questions or feedback around it.
start/stopcommands for adding/closing an open range entry.8:43 - ?; it then keeps the shell process open with an ongoing counter (i.e. “blocking mode”); once you cancel out (^Corqor the like) it converts the previous open-ended entry into a regular time range (8:43 - 14:22) and saves that.inandoutto allow for the word playklog in(“clock in”)4hor15:00-19:00, so that you can quickly track time values from your command line without having to open the file.I don’t intend to build much more than that (e.g. something like “delete” or “lengthen”), because these kinds of operations can much simpler be carried out by just opening the text editor and manipulating the text directly. (Plain text ftw!)
Providing writing capabilities requires some upfront work, because the current parser and serialiser implementations don’t sufficiently preserve formatting variants and whitespace. Also, it must be avoided by all means to corrupt the data in files by accident, so the implementation must be safe and robust enough.
For reference: there was already some previous discussion around this in https://github.com/jotaen/klog/issues/3.
Current State
appendcommand that creates new records from templates. This approach looks promising, so after some polishing it will probably be taken over as is.Beta Was this translation helpful? Give feedback.
All reactions