Comments (13)
Documentation on the undo
command can be found here: undo man page
The command will be part of timewarrior 1.2.0, so the documentation is currently in the sources only. Website will follow.
There is an issue for the problem with the 'm' duration prefix: #133
from timewarrior.
Migrated metadata:
Created: 2016-04-08T12:30:48Z
Modified: 2016-08-16T20:25:24Z
from timewarrior.
I am closing this ticket because of age. Currently there is no (urgent) need for an undo command. Corrections on intervals can be done with shorten/lengthen/move/...
from timewarrior.
My taskwarrior is connected to my TimeWarrior. I changed the scheme of my projects and tags in taskwarrior. I wanted to batch such a change in the history of timewarrior. Things went wrong. I was able to "undo" everything in my taskwarrior, but the undo command in timewarrior missed me. No other choice than restoring a backup.
The undo command would really be useful in such situation. When a tag label change, it has to be updated in the past in all records.
Another usecase :
I wanted to lengthen an interval by 30min but I lengthened it by 30m !!! then the mess occured and I had to manually edit the data files.
from timewarrior.
It is always difficult to rewrite history.
I am curious, how you batched your change in the history of timewarrior. Did you run a script with taskwarrior commands that did your changes and timewarrior followed along with the on-modify-hook script? Or did you do your taskwarrior and timewarrior modifications separately? What was the intended goal (in timewarrior)? Renaming an existing tag? Merging assigned tags?
When a tag label change, it has to be updated in the past in all records.
When you have a tag "FOO" and you decide it should rather be called "BAR" then I agree. When you have an interval which carries label "FOO" and you change it to "BAR", I do not. And I am not sure whether this should happen automatically...
I think the last part is not directly liked to the undo command and more a feature request for timewarrior's tag command ("renaming existing tags").
Do you have a small example for your last usecase? I would have expected that if you have e.g. 2 intervals
09:00 - 10:00 FOO
11:00 - 12:00 BAR
lengthening "FOO" by <1h should work, but anything >1h should cause an error because of the resulting overlap with "BAR".
from timewarrior.
from timewarrior.
I just made a mess of my time tracking when I went to insert a task that I forgot to track earlier in the day. I started by adding the task with minimal time, moved it to the appropriate timeslot, then attempted to lengthen it by 10 minutes.
timew
complained that it would cause an overlap, and that I should use the :adjust
hint to handle it automatically. I looked and there was about a minute of overlap, so I just threw :adjust
onto the command line.
What I diidn't realize, because I've just started using timew
is that I had specified an interval of 10 months, and with the :adjust
hint it happily proceeded to remove all of the intervals that conflicted. Oops.
When I saw that there was a undo history file, and some references to an undo
command in https://taskwarrior.org/docs/timewarrior/files.html I thought I was going to have a relatively easy time with it. Sadly, no.
I guess I'm going to see if there's something I can work up external to timew
to simulate an undo.
from timewarrior.
Just want to second the issue raised by @buc0 - I have mistakenly clobbered a days worth (thankfully not months!) of time tracking
given the presence of the backup data, it would be useful to undo those changes
from timewarrior.
+1 the "m" for month is dangerous and confusing when you want to enter minutes (min) intervals. It was also one of the things that I wanted to "undo". This undo command would be really helpful to help adoption of timew. Everyone does mistakes while learning. If a mistake ruins hours of tracking during evaluation, you will not re-enter/fix the past, the stats will be inaccurate and this can be a show-stopper.
from timewarrior.
Agreed. I am reopening this issue.
from timewarrior.
First version of the 'undo' command implemented. Closes #9 TI-1
from timewarrior.
I made the mistake of typing "30m", which was interpreted as "30 months".
➜ ~ timew track 30m "Christopher - what to do in his absense with flimflam questions"
You cannot overlap intervals. Correct the start/end time, or specify the :adjust hint.
➜ ~ timew track 30m "Christopher - what to do in his absense with flimflam questions" :adjust
Recorded "Christopher - what to do in his absense with flimflam questions"
Started 2016-12-10T10:24:46
Ended 2019-05-29T11:24:46
Total 21600:00:00
I started using timewarrior (with taskwarrior and bugwarrior) about 3 weeks ago, loving it so far.
My question: Where can I find documentation on how to use the "undo" command in timewarrior?
EDIT I found this, it was super helpful: https://www.dp.cx/blog/taskwarrior--timewarrior--and-that-moment-it-all-goes-wrong.html
Starting point is to go to ~/.timewarrior/data
, where you will find the data files. Make a backup of the files before you start, then go to the link above to see how you can use the undo.data file to recreate the data that is missing in the monthly files.
from timewarrior.
Great addition! Thanks so much
from timewarrior.
Related Issues (20)
- internal parsing of tags starting with number broken HOT 1
- Bash completion of tags broken since 1.7.0 HOT 9
- Retrieval of intervals with tags containing hyphens is broken HOT 3
- Entries with accentuated characters not showing up in charts
- Assertion `is_open () || end >= start HOT 4
- changed hook to only transfer project name from task warrior to timewarrior. HOT 1
- [Question] How to specify database directory? HOT 2
- 'daily' not allowed as tag HOT 2
- Tags with special characters (e.g. `+`, `-`) do not apply tag coloring for `tags.<Tag>.color`
- Deleting tags.data and undo.data (question)
- using week numbers accounts Sunday through Saturday, not Monday through Sunday
- Add retag command to internal help HOT 2
- No active tracking after start HOT 4
- Segfaults: Can't modify entry left running overnight/can't continue using ID HOT 3
- Docs for summary and hints do not include the :annotations hint
- Support :annotations hint for timew command
- Timewarrior 1.7.1 Linux built from source no help or man pages HOT 1
- Tag order in CLI arguments is not preserved HOT 3
- Reference ids without at symbol (@)
- Modify both start and end time in same command?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timewarrior.