Skip to content

Commit

Permalink
Working prototype. Well, 80% working
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamim committed Oct 13, 2023
1 parent 42a7970 commit 351201c
Show file tree
Hide file tree
Showing 16 changed files with 1,425 additions and 1,694 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Ultimate TickTick Sync for Obsidian
# Ultimate ticktick Sync for Obsidian

> [!important]
> This plugin is based on [Ultimate Todoist Sync for Obsidian](https://github.com/HeroBlackInk/ultimate-todoist-sync-for-obsidian)
> as of 2023-09-28 this is a work in progress, guarantied to fail. Just saving progress at this point.
The Ultimate TickTick Sync plugin automatically creates tasks in TickTick and synchronizes task state between Obsidian and TickTick.
The Ultimate ticktick Sync plugin automatically creates tasks in ticktick and synchronizes task state between Obsidian and ticktick.


## Demo
Expand All @@ -19,7 +19,7 @@ The Ultimate TickTick Sync plugin automatically creates tasks in TickTick and sy
## Features

###
| Feature | Sync from Obsidian to TickTick | Sync from TickTick to Obsidian | Description |
| Feature | Sync from Obsidian to ticktick | Sync from ticktick to Obsidian | Description |
|-------------------------|-------------------------------|-------------------------------|-------------|
| Add task || 🔜 | |
| Delete task || 🔜 | |
Expand All @@ -31,12 +31,12 @@ The Ultimate TickTick Sync plugin automatically creates tasks in TickTick and sy
| Mark task as uncompleted||| |
| Modify project | 🔜 | 🔜 | |
| Modify section | 🔜 | 🔜 | |
| Modify priority || 🔜 | Currently, task priority only support one-way synchronization from TickTick to Obsidian. |
| Modify priority || 🔜 | Currently, task priority only support one-way synchronization from ticktick to Obsidian. |
| Add reminder | 🔜 | 🔜 | |
| Move tasks between files| 🔜 | 🔜 | |
| Added-at date | 🔜 | 🔜 | |
| Completed-at date | 🔜 | 🔜 | |
| Task notes | 🔜 || Currently, task notes/comments only support one-way synchronization from TickTick to Obsidian. |
| Task notes | 🔜 || Currently, task notes/comments only support one-way synchronization from ticktick to Obsidian. |


## Installation
Expand All @@ -49,18 +49,18 @@ From Obsidian v1.3.5+, you can activate this plugin within Obsidian by doing the
2. Select the `Community plugins` tab on the left
3. Make sure `Restricted mode` is **off**
4. Click `Browse` next to `Community Plugins`
5. Search for and click on `Ultimate TickTick Sync`
5. Search for and click on `Ultimate ticktick Sync`
6. Click `Install`
7. Once installed, close the `Community Plugins` window
8. Under `Installed Plugins`, activate the `Ultimate TickTick Sync` plugin
8. Under `Installed Plugins`, activate the `Ultimate ticktick Sync` plugin

You can update the plugin following the same procedure, clicking `Update` instead of `Install`

### Manually

If you would rather install the plugin manually, you can do the following:

1. Download the latest release of the plugin from the [Releases](https://github.com/HeroBlackInk/ultimate-TickTick-sync-for-obsidian/releases) page.
1. Download the latest release of the plugin from the [Releases](https://github.com/thesamim/ultimate-ticktick-sync-for-obsidian/releases) page.
2. Extract the downloaded zip file and copy the entire folder to your Obsidian plugins directory.
3. Enable the plugin in the Obsidian settings.

Expand All @@ -69,8 +69,8 @@ If you would rather install the plugin manually, you can do the following:

1. Open Obsidian's `Settings` window
2. Select the `Community plugins` tab on the left
3. Under `Installed plugins`, click the gear icon next to the `Ultimate TickTick Sync` plugin
4. Enter your TickTick API token
3. Under `Installed plugins`, click the gear icon next to the `Ultimate ticktick Sync` plugin
4. Enter your ticktick API token


## Settings
Expand All @@ -79,7 +79,7 @@ The time interval for automatic synchronization is set to 300 seconds by default
2. Default project
New tasks will be added to the default project, and you can change the default project in the settings.
3. Full vault sync
By enabling this option, the plugin will automatically add `#TickTick` to all tasks, which will modify all files in the vault.
By enabling this option, the plugin will automatically add `#ticktick` to all tasks, which will modify all files in the vault.


## Usage
Expand All @@ -88,11 +88,11 @@ By enabling this option, the plugin will automatically add `#TickTick` to all ta

| Syntax | Description | Example |
| --- | --- | --- |
|#TickTick|Tasks marked with `#TickTick` will be added to TickTick, while tasks without the `#TickTick` tag will not be processed.If you have enabled Full vault sync in the settings, `#TickTick` will be added automatically.| `- [ ] task #TickTick`|
| 📅YYYY-MM-DD | The date format is 📅YYYY-MM-DD, indicating the due date of a task. | `- [ ] task content 📅2025-02-05 #TickTick` <br>Supports the following calendar emojis.📅📆🗓🗓️|
| #projectTag | New tasks will be added to the default project(For example, inbox .), and you can change the default project in the settings or use a tag with the same name to specify a particular project. | `- [ ] taskA #TickTick` will be added to inbox.<br>`- [ ] taskB #tag #testProject #TickTick` will be added to testProject.|
| #tag | Note that all tags without a project of the same name are treated as normal tags | `- [ ] task #tagA #tagB #tagC #TickTick` |
| `!!<number>` | The priority of the task (a number between 1 and 4, 4 for very urgent and 1 for natural).<br>**Note**: Keep in mind that very urgent is the priority 1 on clients. So, the priority 1 in the client corresponds to the number 4 here (Because that's how the official API of TickTick is designed.). | `- [ ] task !!4 #TickTick` |
|#ticktick|Tasks marked with `#ticktick` will be added to ticktick, while tasks without the `#ticktick` tag will not be processed.If you have enabled Full vault sync in the settings, `#ticktick` will be added automatically.| `- [ ] task #ticktick`|
| 📅YYYY-MM-DD | The date format is 📅YYYY-MM-DD, indicating the due date of a task. | `- [ ] task content 📅2025-02-05 #ticktick` <br>Supports the following calendar emojis.📅📆🗓🗓️|
| #projectTag | New tasks will be added to the default project(For example, inbox .), and you can change the default project in the settings or use a tag with the same name to specify a particular project. | `- [ ] taskA #ticktick` will be added to inbox.<br>`- [ ] taskB #tag #testProject #ticktick` will be added to testProject.|
| #tag | Note that all tags without a project of the same name are treated as normal tags | `- [ ] task #tagA #tagB #tagC #ticktick` |
| `!!<number>` | The priority of the task (a number between 1 and 4, 4 for very urgent and 1 for natural).<br>**Note**: Keep in mind that very urgent is the priority 1 on clients. So, the priority 1 in the client corresponds to the number 4 here (Because that's how the official API of ticktick is designed.). | `- [ ] task !!4 #ticktick` |

### Set a default project for each file separately

Expand Down
31 changes: 31 additions & 0 deletions dist/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.code {
width: 500px;
height: 500px;
display: block;
}

.config {
width: 500px;
height: 400px;
display: block;
}

.go {
display: block;
float: right;
font-size: 18px;
}

.result {
width: 500px;
height: 1000px;
display: block;
}

.edit {
float: left;
}

.results {
float: left;
}
11 changes: 11 additions & 0 deletions dist/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "ultimate-TickTick-sync",
"name": "Ultimate TickTick Sync",
"version": "1.0.1",
"minAppVersion": "1.0.0",
"description": "This is the best TickTick task synchronization plugin for Obsidian so far.",
"author": "thesamim",
"authorUrl": "https://github.com/thesamim/ultimate-ticktick-sync-for-obsidian.git",
"fundingUrl": "",
"isDesktopOnly": false
}
22 changes: 22 additions & 0 deletions dist/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

.cm-line:not(:hover):not(.cm-active) span.cm-comment {
display: none;
}







/*
.cm-line span.cm-comment {
display: none;
}
.cm-line.cm-active span.cm-comment,
.cm-line:hover span.cm-comment {
display: inline-block;
}
*/
Loading

0 comments on commit 351201c

Please sign in to comment.