org-clock-convenience icon indicating copy to clipboard operation
org-clock-convenience copied to clipboard

provide a command to insert a clocked task between two existing tasks

Open dfeich opened this issue 4 years ago • 3 comments

This is a feature request.

It often happens that one forgot to clock a certain time range, because e.g. one was not sitting in front of the computer. At the end of the day I usually go over the clocked times (e.g. with the agenda clockcheck mode). I would like to be able and move the cursor to a clocked task and then insert a clocked task that fills the time of the previous task and the task under the cursor.

If the task under the cursor is the first task of that day, it should insert a minimum clock interval (e.g. 5 min) before the current line. Task selection can be implemented through helm, etc.

As all other commands, it should not force me to leave the agenda mode.

dfeich avatar Nov 10 '19 16:11 dfeich

This will be difficult to implement. I can think of a scenario which a user has multiple org-agenda-files it will be impossible to determine which file this new task should reside and where it should be in that file.

And even if org-agenda-files is just one big file then the where is still an issue since between these two existing tasks there could be many headings between them. Then what about sorting and filtering? When we add a new task how can we be sure that it will satisfy the filter and user can see them?

c1-g avatar Mar 03 '22 06:03 c1-g

Well, I am using several agenda files. But org-clock-convenience is actually leveraging the work that the agenda mode already has done, i.e. it just parses the current agenda view for clock lines, and that has been composed from all agenda files in the =org-agenda-files= list. The entries reference the tasks/source files. So, this would actually work.

dfeich avatar Mar 05 '22 07:03 dfeich

To me it would make sense to use org-capture here (which already does the work of picking the org file and writing the task heading), and then just adding the logbook entry to the newly captured task.

unhammer avatar May 21 '24 11:05 unhammer