Giter VIP home page Giter VIP logo

Comments (13)

lauft avatar lauft commented on August 23, 2024 1

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.

taskwarrior avatar taskwarrior commented on August 23, 2024

Migrated metadata:

Created: 2016-04-08T12:30:48Z
Modified: 2016-08-16T20:25:24Z

from timewarrior.

lauft avatar lauft commented on August 23, 2024

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.

fcerbell avatar fcerbell commented on August 23, 2024

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.

lauft avatar lauft commented on August 23, 2024

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.

fcerbell avatar fcerbell commented on August 23, 2024

from timewarrior.

buc0 avatar buc0 commented on August 23, 2024

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.

ptonner avatar ptonner commented on August 23, 2024

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.

fcerbell avatar fcerbell commented on August 23, 2024

+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.

lauft avatar lauft commented on August 23, 2024

Agreed. I am reopening this issue.

from timewarrior.

lauft avatar lauft commented on August 23, 2024

First version of the 'undo' command implemented. Closes #9 TI-1

from timewarrior.

michaellenahan avatar michaellenahan commented on August 23, 2024

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.

ChargingBulle avatar ChargingBulle commented on August 23, 2024

Great addition! Thanks so much

from timewarrior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.