Note template system for Inkdrop
MIT License
Note template system for Inkdrop.
Install with ipm
:
ipm install inkdrop-note-templates
You can create templates in two ways.
_Templates
notebook.Template
tag to them.📝 Currently _Templates
and Template
are hard-coded names, welcome to Pull Request!
Note template should have content and metadata as Yaml Front Matter.
id
: unique id for command
label
: Menu label for the templatetitle
: Render title with LiquidJS and set it as new note's title📝 Inherit other properties like tags from Template note.
---
id: test
label: "Test Template"
title: "Test Title"
---
Test body text.
- item 1
- item 2
inkdrop-note-templates use LiquidJS.
so, You can use template syntax in title
and body.
---
id: today-task
label: "Today Task"
title: "{{'now' | date: '%Y-%m-%d'}} Task"
---
## TODO
- [ ] TASK
You can create new note from "File" > "Templates" > your templates.
⚠️ If you have updated your template, Please restart inkdrop application.
Call inkdrop-note-templates:${template.id}
from shortcut and create a new note with the template.
You open your keymap.cson and edit it.
Following example create new file with id: today-task
template.
'body':
'cmd-shift-e': 'inkdrop-note-templates:today-task'
Search Topics: inkdrop on GitHub.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT