-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"accentColor": "" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[ | ||
"gtd-no-next-step" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"file-explorer": true, | ||
"global-search": false, | ||
"switcher": true, | ||
"graph": false, | ||
"backlink": false, | ||
"canvas": false, | ||
"outgoing-link": false, | ||
"tag-pane": false, | ||
"properties": false, | ||
"page-preview": false, | ||
"daily-notes": false, | ||
"templates": true, | ||
"note-composer": false, | ||
"command-palette": true, | ||
"slash-command": false, | ||
"editor-status": true, | ||
"bookmarks": false, | ||
"markdown-importer": false, | ||
"zk-prefixer": false, | ||
"random-note": false, | ||
"outline": false, | ||
"word-count": false, | ||
"slides": false, | ||
"audio-recorder": false, | ||
"workspaces": false, | ||
"file-recovery": false, | ||
"publish": false, | ||
"sync": false | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
"file-explorer", | ||
"switcher", | ||
"templates", | ||
"command-palette", | ||
"editor-status" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"folder": "Templates" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"main": { | ||
"id": "487bd2982b5b1dce", | ||
"type": "split", | ||
"children": [ | ||
{ | ||
"id": "bfa372977a8b84fb", | ||
"type": "tabs", | ||
"children": [ | ||
{ | ||
"id": "cfac32c7e03ebb33", | ||
"type": "leaf", | ||
"state": { | ||
"type": "markdown", | ||
"state": { | ||
"file": "Projects/Example.md", | ||
"mode": "source", | ||
"backlinks": false, | ||
"source": false | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"direction": "vertical" | ||
}, | ||
"left": { | ||
"id": "ac6138c908bf2ef0", | ||
"type": "split", | ||
"children": [ | ||
{ | ||
"id": "902746e70cb575cc", | ||
"type": "tabs", | ||
"children": [ | ||
{ | ||
"id": "aeeedd5116b7ef5a", | ||
"type": "leaf", | ||
"state": { | ||
"type": "file-explorer", | ||
"state": { | ||
"sortOrder": "alphabetical" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "22f163d7d3e086f0", | ||
"type": "leaf", | ||
"state": { | ||
"type": "search", | ||
"state": { | ||
"query": "tag:#waiting-for" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"direction": "horizontal", | ||
"width": 300 | ||
}, | ||
"right": { | ||
"id": "ab6ae738fa12851d", | ||
"type": "split", | ||
"children": [], | ||
"direction": "horizontal", | ||
"width": 300, | ||
"collapsed": true | ||
}, | ||
"left-ribbon": { | ||
"hiddenItems": { | ||
"switcher:Open quick switcher": false, | ||
"templates:Insert template": false, | ||
"command-palette:Open command palette": false | ||
} | ||
}, | ||
"active": "cfac32c7e03ebb33", | ||
"lastOpenFiles": [ | ||
"Hello World.md", | ||
"Templates/Plugin Test.md", | ||
"Projects/Example.md", | ||
"test-2023-12-16.md", | ||
"Projects", | ||
"Templates" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
This vault is primarily used to test this plugin. | ||
|
||
To test it, create a new note from [[Plugin Test]], test each scenario and mark as done and add notes as needed. | ||
|
||
To install the local version of the plugin, you'll need to copy these files: | ||
- `main.js` | ||
- `manifest.json` | ||
- `styles.css` | ||
Into the folder: | ||
- `.obsidian/plugins/gtd-no-next-step` | ||
Tags used: #next-step #waiting-for | ||
|
||
Or, from the root of this repo, simply do: | ||
``` | ||
npm run setup | ||
``` | ||
Then from Obsidian go turn on community plugins, then "View > Force Reload", then got turn this plugin on. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- [ ] this is a task |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
|
||
In lieu of automated tests, here are the things to test when making changes. | ||
|
||
Configuration: | ||
- Folder: `Projects/` | ||
- Next: `#next-step` | ||
- Waiting: `#waiting-for` | ||
|
||
#### 1. File with no tasks | ||
Template: | ||
``` | ||
file with no tasks | ||
``` | ||
Action | ||
- None | ||
Expected outcome: | ||
- [ ] The red badge "No Next" is shown | ||
|
||
#### 2. File with tasks but no next/waiting | ||
Template: | ||
``` | ||
- [ ] this is a task | ||
``` | ||
Action | ||
- None | ||
Expected outcome: | ||
- [ ] The red badge "No Next" is shown | ||
|
||
#### 3. File with only a waiting task | ||
Template: | ||
``` | ||
- [ ] this is a task #waiting-for | ||
``` | ||
Action | ||
- None | ||
Expected outcome: | ||
- [ ] The gray badge "Waiting" is shown | ||
|
||
#### 4. Marking task as done, no tasks left | ||
Template: | ||
``` | ||
- [ ] this is a task #next-step | ||
``` | ||
Action | ||
- Mark the task as done by checking box | ||
Expected outcome: | ||
- [ ] No next step so the red "No Next" badge is shown | ||
|
||
#### 5. No next, marking task as waiting | ||
Template: | ||
``` | ||
- [ ] this is a task | ||
``` | ||
Action | ||
- Add the tag `#waiting-for` to the task | ||
Expected outcome: | ||
- [ ] The gray "Waiting" badge appears | ||
|
||
#### 6. Waiting task, marking as done | ||
Template: | ||
``` | ||
- [ ] this is a task #waiting-for | ||
``` | ||
Action | ||
- Mark the task as done by checking box | ||
Expected outcome: | ||
- [ ] The red "No Next" badge appears | ||
|
||
#### 7. Waiting task, removing tag | ||
Template: | ||
``` | ||
- [ ] this is a task #waiting-for | ||
``` | ||
Action | ||
- Clear the tag from the task | ||
Expected outcome: | ||
- [ ] The red "No Next" badge appears | ||
|
||
#### 8. Moving a project file out | ||
Template: | ||
``` | ||
- [ ] this is a task | ||
``` | ||
Action | ||
- Move out of the `Projects/` folder | ||
Expected outcome: | ||
- [ ] The red "No Next" badge is removed | ||
|
||
#### 9. Moving a file into projects | ||
Create a file outside the `Projects/` folder. | ||
Template: | ||
``` | ||
- [ ] this is a task | ||
``` | ||
Action | ||
- Move into the `Projects/` folder | ||
Expected outcome: | ||
- [ ] The red "No Next" badge is added |