Skip to content

Commit

Permalink
release 1.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
eatgrass committed Jan 16, 2024
1 parent 22619dc commit ce7f81a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 41 deletions.
39 changes: 0 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,45 +177,6 @@ dv.table(
```
</pre>

### Task Tracking

Enhance your tasks with Pomodoro logs as sublists. Each entry details the type of session, duration, and timestamps.

```markdown
# add logs as sublist of your task

- [ ] My Awesome Task
- 🍅 (pomodoro::WORK) (duration:: 1m) (begin:: 2023-11-29 13:58) - (end:: 2023-11-29 14:01)
- 🥤 (pomodoro::BREAK) (duration:: 22m) (begin:: 2023-11-29 13:36) - (end:: 2023-11-29 14:01)
- 🥤 (pomodoro::BREAK) (duration:: 22m) (begin:: 2023-11-29 13:38) - (end:: 2023-11-29 14:01)
- 🍅 (pomodoro::WORK) (duration:: 1m) (begin:: 2023-11-29 14:01) - (end:: 2023-11-29 14:03)
- 🍅 (pomodoro::WORK) (duration:: 1m) (begin:: 2023-11-29 14:01) - (end:: 2023-11-29 14:03)
```

![image](https://github.com/eatgrass/obsidian-pomodoro-timer/assets/2351076/2c0c9852-fd86-4390-8519-7cb3a049ec28)

<pre>
```dataviewjs
const pages = dv.pages();
const emoji = "🍅";
dv.table(
["Task", "Pomodoros", "Total"],
pages.file.tasks
.filter((task) => task.children.some((child) => child.pomodoro == "WORK"))
.map((task) => {
let p = task.children
.filter((child) => child.pomodoro == "WORK")
.map((child) => child.duration.as("minutes"));
let sum = p
.reduce((a, b) => a+b,0)
let pomodoros =
p.length > 5 ? `${emoji} ${p.length}` : `${emoji.repeat(p.length)}`;
return [task.text, pomodoros, `${sum} minutes`];
})
)
```
</pre>

## CSS Variables

| Variable | Default |
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "pomodoro-timer",
"name": "Pomodoro Timer",
"version": "1.1.7",
"version": "1.1.8",
"minAppVersion": "0.15.0",
"description": "A pomodoro timer that helps manage your daily focus",
"author": "eatgrass",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-pomodoro-timer",
"version": "1.1.7",
"version": "1.1.8",
"description": "A pomodoro timer that helps manage your daily focus",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit ce7f81a

Please sign in to comment.