-
Notifications
You must be signed in to change notification settings - Fork 36
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: Ability to mark, archive or tag entries. #33
Comments
This is an interesting problem. In my opinion an If the use case were to filter the activities to archive by dates and / or project, the What are your thoughts on that? Would that solve the problem of billed activities? |
That's what I had in mind with the Archive feature too. I think one "bartib archive|unarchive N" where N is a number would work. Archive moves it from the the "live" to the "archive" file, "unarchive" the other way around. Moving would probably be just append it to the end of the other file? Then a global "--archive|-a" flag to toggle the "report" and "list" to use either the archive file or the live file could be added so that we can check which is in archive.
It would solve it, because I could "abuse" the archive as a flag to say "archived == billed". |
I think the I am not sure what the I like the idea of a global One thing to consider during implementation is to ensure no data is lost during the move. Therefore, the activities should be appended to the archive, before they are removed from the source file. Thus, if writing the archive leads to an error we can still stop the operation. |
My idea was to keep it simple, by (re)using the In my case, something like the following would work. The sed/cut stuff could be dropped if I could control the output of bartib a bit more.
I -personally- prefer such an approach, provided the output is somewhat stable and parseable. So, in case of bartib, I'd like The approach allows for much more freedom: I can even pipe it to my text editor, or via a spreadsheet. But I can always just use simple grep, sed, and a loop to control what I want archived. It also offers a good way to first review what's being archived. I do think your request to follow the |
Please excuse my late reply; Christmas was a busy time. I am not sure if utilizing the mechanisms from Regarding your use case, I think it could be perfectly feasible and reasonable to skip an archive command and just use GNU standard tools directly with the bartib file. |
For now I went with a scheme that matches what I use in todo.txt. "key:value" pairs in the description. It is not the same as archiving at all, but works for my case. FWIW, I've made a bash and awk script that allows me to batch-append such strings to the description.
The batch-appending (or batch replacing) of descriptions, might be a nice feature to have in bartib, rather than the unreadable mess that awk uses. Anyway. Hope this already helps someone. |
I like the idea as described in #33 (comment) |
My problem is the following:
I do work for customers, tracking my time.
Once every X time (week, month etc) I bill these customers.
With bartib, it is hard to keep track of which hours/entries are billed and which are still open.
I see several solutions for this. And am wondering if there is need for a solution inside of bartib and if so, which one.
The details and up- and downsides of these features are unclear to me yet. :)
The text was updated successfully, but these errors were encountered: