obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Set completion timestamp when modifying tasks

Open dmastylo opened this issue 3 years ago • 7 comments

Describe the solution you'd like Currently, marking a checkbox as completed from a Dataview appends [completion:: todays-date]. For my workflow, I like to estimate the time tasks take, and mark the completion time of them to see how long it actually took. For me, I'd like to be able to configure the auto-completion further to add the timestamp [completion:: todays-date timestamp:now]

Describe alternatives you've considered Due to no text editing allowed within the Dataview, I have to navigate to the note where the checkbox is and add the time completion myself.

dmastylo avatar Jul 05 '22 19:07 dmastylo

Are you just looking for the completion time to include the full timestamp? If so, #1245 may be another relevant issue where both can be fixed by allowing templating.

blacksmithgu avatar Jul 08 '22 10:07 blacksmithgu

That is exactly it, templating would be great for this.

dmastylo avatar Jul 08 '22 15:07 dmastylo

@dmastylo, do I understand correctly that you want the the completion field to include not only the date but also the time?

mt-krainski avatar Jul 10 '22 23:07 mt-krainski

Yes, currently I manually type in the time using a separate plugin, natural language dates, and type in @time.now after the date that Dataview puts in.

However, @blacksmithgu's suggestion to do generic templating might suit a lot of more use cases and prevent further feature requests like this.

dmastylo avatar Jul 11 '22 02:07 dmastylo

@mt-krainski templating solution has merged and I'll release it after testing it works this evening - this lets you use luxon templating which includes being able to set timestamps up to the millisecond.

blacksmithgu avatar Jul 11 '22 21:07 blacksmithgu

thanks a ton @blacksmithgu and @mt-krainski!!! Y'all are awesome

dmastylo avatar Jul 11 '22 21:07 dmastylo

@blacksmithgu, did you get a chance to test and release it? I think it's still not there in the latest version of the plugin?

mt-krainski avatar Jul 18 '22 23:07 mt-krainski

image

this was released, I'll close this issue out

dmastylo avatar May 14 '23 19:05 dmastylo