logseq-plugin-agenda icon indicating copy to clipboard operation
logseq-plugin-agenda copied to clipboard

Pomodoro's recorded time should be saved in markdown format

Open pushakargaikwad opened this issue 1 year ago • 4 comments

It appears that as of now Pomodoro's recorded time is stored only in the database.

It must be stored in a markdown file too. This will allow saving data in case of app reset.

Suggestion: For Reference, Currently, logbook data is stored in a markdown file using the format

	  :LOGBOOK:
	  CLOCK: [2022-07-21 Thu 14:47:44]--[2022-07-21 Thu 15:13:17] =>  00:25:33
	  CLOCK: [2022-07-21 Thu 15:18:29]--[2022-07-21 Thu 15:40:50] =>  00:22:21
	  :END:

Either the Pomodoro timer can be stored with the above format as reference OR the data can be inserted directly in the above LOGBOOK entry

pushakargaikwad avatar Jul 21 '22 10:07 pushakargaikwad

Currently, sdk does not support controlling the logbook, and the logbook can only record time information, while Pomodoro also needs to record whether it is completed and interrupt recording. If the logbook can support comments in the future, it may be possible.

haydenull avatar Jul 27 '22 23:07 haydenull

Can this information be stored someway in markdown as backup? It will be a bummer losing all of it if we lose the DB data. A separate Pomodoro-logbook.md maybe where data is just appended. Users can be warned not to edit that file.

pushakargaikwad avatar Jul 29 '22 04:07 pushakargaikwad

Currently, the Pomodoro data is stored in Markdown file, I think you don't need to worry.

In order to keep the format consistent, the Logbook will also store a copy of the data in the future if the SDK supports it.

haydenull avatar Aug 04 '22 00:08 haydenull

I am currently using syncthing to sync between two machines. It would be helpful if you could provide documentation of how to sync the Pomodoro data.

pushakargaikwad avatar Aug 04 '22 05:08 pushakargaikwad

Agenda3 supports this, you can give it a try.

haydenull avatar Nov 21 '23 09:11 haydenull

@haydenull, This is how it is being store in Agenda3 right now. Is this the expected format or should it be store in a :LOGBOOK:?

- [ ] Test Task >[🍅 1min](#agenda-pomo://?t=p-1700559048674-11)

AnweshGangula avatar Nov 21 '23 09:11 AnweshGangula

@AnweshGangula Agenda3 currently does not have a built-in Pomodoro, but you can use the task reminder plugin. The time information will be recorded in the logbook, which can be recognized and edited by Agenda.

haydenull avatar Nov 21 '23 10:11 haydenull

@haydenull, when I right click on any block in Logseq right now, it shows an option called "Agenda: Start Pomodoro Timer". Isnt this the built-in Pomodoro from Agenda?

Logseq Agenda Pomodoro

AnweshGangula avatar Nov 21 '23 12:11 AnweshGangula

Yes, this is the build-in pomodoro of Agenda2. You can install task reminder plugin to use pomodoro for Agenda3.

https://github.com/sethyuan/logseq-plugin-task-reminder

haydenull avatar Nov 21 '23 12:11 haydenull

I have installed the task-reminder plugin. But its not clear how it works and how to use it

AnweshGangula avatar Nov 21 '23 13:11 AnweshGangula

When you change a task status to DOING or NOW and it matches a reminding condition, a reminding timer is set.

Just click the TODO tag.

image

haydenull avatar Nov 21 '23 23:11 haydenull

Okay, I had to enable the below option in screenshot (Whether reminding is on for all tasks by default) option for the pomodoro to work with all tasks. And this does add the :LOGBOOK: information.

But the :LOGBOOK: data doesn't show up in Review tab of the Agenda plugin.

Task Reminder Options

AnweshGangula avatar Nov 22 '23 04:11 AnweshGangula

Agenda3 currently doesn’t have review feature. But the logbook of the completed tasks can be displayed in the calendar.

image

haydenull avatar Nov 22 '23 05:11 haydenull

Hi There! 👋

This issue has been marked as stale due to inactivity for 40 days.

We would like to inquire if you still have the same problem or if it has been resolved.

If you need further assistance, please feel free to respond to this comment within the next 7 days. Otherwise, the issue will be automatically closed.

We appreciate your understanding and would like to express our gratitude for your contribution to Agenda. Thank you for your support. 🙏

github-actions[bot] avatar Jan 18 '24 00:01 github-actions[bot]