Skip to content

Commit

Permalink
Support Obsidian 0.8.14 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 authored Sep 15, 2020
1 parent a8d1c6e commit f203c60
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 119 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `contains-task-list` to match latest Obsidian styling.
- The entire task (`li` element) has the `task-overdue` class on it, in addition to the date element specifically.
- The task (`li` element) has either `has-time` or `has-no-time` derived from the date field. (No date or time will also have `has-no-time`).
- Add support for Obsidian v0.8.14

### 🐛 Bug Fixes

Expand Down
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

An experimental [Obsidian](https://obsidian.md/) plugin using [Volcano](https://github.com/kognise/volcano) to materialize [Todoist](https://todoist.com/) task lists in Obsidian notes.

_Tested with Obsidian 0.8.9 and Volcano 1.2.1, your results may vary!_
_Tested with Obsidian 0.8.14 and Volcano 1.2.1, your results may vary!_

![Example gif](./.github/obsidian-todoist-sync.gif)

Expand Down Expand Up @@ -34,18 +34,6 @@ _Tested with Obsidian 0.8.9 and Volcano 1.2.1, your results may vary!_
| `autorefresh` | | The number of seconds between auto-refreshing. If omitted, the query use the default global settings. | number | null |
| `sorting` | | Describes how to order the tasks in the query. Can be any of 'priority' or 'date', or multiple. | string[] | [] |

## Settings

This plugin adds a setting tab to the Obsidian settings menu. This controls global settings for this plugin.

| Name | What does it control? | Default |
| --------------------- | ------------------------------------------------------------------------------------------- | ------- |
| Task fade animation | Whether tasks should fade in and out when added or removed. | true |
| Auto-refresh | Whether queries should auto-refresh at a set interval. | false |
| Auto-refresh interval | The interval (in seconds) that queries should auto-refresh by default. Integer numbers only | 60 |
| Render dates | Whether dates should be rendered with tasks. | true |
| Render date icon | Whether rendered dates should include an icon. | true |

## CSS

### General
Expand Down
8 changes: 0 additions & 8 deletions src/obsidian.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,9 @@ export class SettingsTab implements ISettingsTab {
}

interface ISettingsTab {
addToggleSetting(title: string, description: string): ISettingValue<boolean>;
addTextSetting(title: string, description: string): ISettingValue<string>;
display();
}

export interface ISettingValue<T> {
getValue(): T;
setValue(value: T);
onChange(func: () => void);
}

export type Constructor<T = {}> = new (...args: any[]) => T;
export type Settings = Constructor<typeof SettingsTab & ISettingsTab>;

Expand Down
Loading

0 comments on commit f203c60

Please sign in to comment.