Skip to content

Commit

Permalink
Implement init and onTaskFound for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Oct 31, 2024
1 parent e78d2ba commit 508ac75
Show file tree
Hide file tree
Showing 135 changed files with 2,188 additions and 373 deletions.
18 changes: 13 additions & 5 deletions .imdone/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ code:
- READY
- ABANDONED
lists:
- name: NOTE
hidden: false
ignore: false
id: jea6nx7llx85j9k
- name: FIXME
hidden: false
ignore: false
id: sktwi22bvlvppcr50
- name: NOTE
hidden: true
ignore: false
id: jea6nx7llx85j9k
- name: Past Due Reminders
hidden: true
ignore: false
Expand Down Expand Up @@ -66,7 +66,6 @@ settings:
newCardSyntax: MARKDOWN
replaceSpacesWith: '-'
plugins:
devMode: false
imdone-sample-plugin:
tags: []
meta:
Expand All @@ -76,6 +75,12 @@ settings:
value: Release 1.29.0
- key: epic
value: Release 2.0
SamplePlugin:
tags: []
meta: []
HeaderFooterPlugin:
afterPrefix: '${!/.md$/.test(relPath) ? ''## **:hammer_and_wrench:** '' : ''''}'
devMode: false
journalTemplate: null
markdownOnly: false
theme: dark
Expand All @@ -86,6 +91,7 @@ settings:
views: []
name: imdone core
defaultFilter: !<tag:yaml.org,2002:js/undefined> ''
kudosProbability: 0.33
cards:
colors:
- color: green
Expand Down Expand Up @@ -122,3 +128,5 @@ settings:
pack: fab
title: Tweet this card
defaultList: FIXME
archiveCompleted: true
archiveFolder: notes/archive
106 changes: 106 additions & 0 deletions .imdone/plugins/imdone-header-footer-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.imdone/plugins
4 changes: 4 additions & 0 deletions .imdone/plugins/imdone-header-footer-plugin/.imdoneignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.obsidian
.trash
bundle.js
.imdone/plugins
3 changes: 3 additions & 0 deletions .imdone/plugins/imdone-header-footer-plugin/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
imdone-tasks.md
main.js
.imdone
6 changes: 6 additions & 0 deletions .imdone/plugins/imdone-header-footer-plugin/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true
}
21 changes: 21 additions & 0 deletions .imdone/plugins/imdone-header-footer-plugin/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 imdone

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions .imdone/plugins/imdone-header-footer-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# imdone-header-footer-plugin

Add custom headers and footers to your imdone cards. Just add a **header** and/or **footer** in the plugin settings
and it will appear in all of your cards.

You can also use [interpolated values](https://imdone.io/docs/#/cards?id=string-interpolation) in your header and footer.
Loading

0 comments on commit 508ac75

Please sign in to comment.