nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.03k stars 134 forks source link

Adding a time stamp for todo keywords other than DONE #84

Closed gerazov closed 3 years ago

gerazov commented 3 years ago

Does this feature exist in Emacs orgmode core?

N/A

Orgmode link

No response

Feature value

Awesome plugin :sunglasses: !

It would be nice to be able to keep track of time spent doing a task. I know that it's in your pipeline, but a proxy would be really helpful.

What I have in mind is the possibility to add a STARTED timestamp, in a similar way that the CLOSED timestamp is added. And tie it to a todo keyword, e.g. TODO -> DOING -> DONE. I'm currently doing this manually :sweat_smile:

Additional context

No response

kristijanhusak commented 3 years ago

Anything outside DEADLINE, SCHEDULED and CLOSED are outside of the orgmode syntax, and I don't plan to support it. Logging time will be added at some point, and most likely on tree-sitter branch.

gerazov commented 3 years ago

Ok #88 kinda solves it, if it could also stamp the current time ...

kristijanhusak commented 3 years ago

@gerazov if you really want to set up something for yourself until time tracking is added, I suggest to just write few lines of code to achieve it. To get current time you can do two things:

gerazov commented 3 years ago

Ok thanks!

kristijanhusak commented 3 years ago

@gerazov Clocking support is now added to the tree-sitter branch.

You can read about it in the docs.

I would appreciate your feedback on this.

gerazov commented 2 years ago

clocking works great! awesome :sunglasses:

One typo in the docs https://github.com/kristijanhusak/orgmode.nvim/blob/tree-sitter/DOCS.md#clock-out

The clock out shortcut is <leader>oxo

Is calculating a total time for a task (if it was clocked several separate times) a thing planned for the future? i.e. once I mark a task DONE it calculates all the time spent doing it. I don't know if it's in emacs, but it might be useful for big tasks or if you get a lot of interrupts :sweat_smile:

If it makes sense I'll post it as an enhancement.

kristijanhusak commented 2 years ago

I'll fix the typo, thanks.

There are ways to see it in Emacs, like column mode or custom clock report generated inside the orgfile itself. That's planned for future, but I'm not sure when.

gerazov commented 2 years ago

ok cool :+1: looking forward to the future :wink: