-
Notifications
You must be signed in to change notification settings - Fork 116
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
t edit
, when there is no running entry defaulting to the last one
#54
Comments
I like this idea. Perhaps I need to think some more about the behavior when you've switched sheets. Timetrap already tracks the previous sheet (to enable |
Being expert on forgettingYou see, my typical scenario is switching to another sheet, and then realizing, I forgot to add some note to the last task. I am real expert on this (forgetting). Terms running versus current sheetThere seem to be too different terms regarding sheet:
Where to get id of last taskI am aware of data structure in sqlite you use (I like the simplicity). One idea for getting id of last running entry: ask sqlite for id with maximal value. I know, it will take a bit more time then reading a record from meta table, but is it quite safe (safer, then keeping records in meta, which could get out of sync in many scenarios, like killing a taks, a sheet or so). I like TimeTrap - I already learned some valuable information from my TimeTrap records. |
Should help with samg#54
* `t edit` will new edit the most recently checked out of entry if no entry is running. Closes samg#54
I use
t edit -z aditional note
(--append quite
) often.However, if I run it after
t out
, when there is no running entry, then it complainscanẗ find entry
.It would be great, if
t edit
woudl default to running or last running entry, in the simliar fassion ast resume
does.There is one scenario different then
t resume
, after change of a sheet:t sheet one
t in basic note
t edit -z this note works already now, as we have runnung entry
t out
t edit -z adding note to the same entry as would resume pick
t sheet another
t edit -z adding note, which shall go to the last task (in sheet one)
I you feel, this could be tricky in some situation, there could come confirmation with message like:
Trying to append note to task in sheet >one<, which is not current one!!! Proceed? (Y/n)
There is no need for confirmation in case, we are appending to task in current sheet.
The text was updated successfully, but these errors were encountered: