Last updated 1 min read

Pomodoro Timer Plugin Template

#Productivity, #Obsidian, #Obsidian Plugins That I Use

Here is my template for Pomodoro Timer Obsidian plugin:

<%*
if (log.mode == "WORK") {
  if (!log.finished) {
    tR = `- **${log.begin.format("HH:mm")}** Focus ${log.task.name}  (${log.duration} / ${log.session}m)`;
  } else {
    tR = `- **${log.begin.format("HH:mm")} - ${log.end.format(
    "HH:mm"
  )}** Focus ${log.task.name} (${log.duration}m)`;
  }
} else {
  tR = `- **${log.begin.format("HH:mm")} - ${log.end.format(
    "HH:mm"
  )}**  Break`;
}
%>

It produces the following output:

  • 16:24 - 16:50 Focus (25m)
  • 16:50 - 16:55 Break
  • 17:36 - 18:01 Focus (25m)
  • 18:01 - 18:06 Break
  • 18:16 - 18:41 Focus (25m)
  • 18:41 - 18:46 Break
  • 18:53 - 19:18 Focus (25m)
  • 19:18 - 19:43 Focus (25m)

References

GitHub - eatgrass/obsidian-pomodoro-timer: A pomodoro timer that helps manage your daily focus