๐ Templating
Templating Plugin for NotePlan
๐งฉ Templating plugin for Noteplan
Hereโs a grouped release announcement message summarizing the new features and improvements in the latest Templating plugin updates (v2.0.0โ2.0.8), leaving out bug fixes:
๐ Templating Plugin v2.0.x โ Major Features & Enhancements
Weโre excited to announce a major series of updates to the Templating plugin, packed with powerful new features, workflow enhancements, and developer tools. Hereโs whatโs new:
๐ Template Note Creation & Insertion
-
You can now use
InsertTemplate
orAppendTemplate
to:- ๐ Automatically create a new note in the specified folder when used on a blank note.
- ๐ Prompt to move the current note to the target folder if it's not blank.
-
Support for
newNoteTitle
argument and JSON vars for better Shortcuts integration. -
templateAppend
command improvements for easier testing.
๐ง Smarter & More Flexible Template Tags
-
New tag functions:
getValuesForKey
: retrieve all values for a specific frontmatter key.promptKey
: interactive user prompts with folder filtering.getNote
: fetch notes by title, filename, or ID.
-
<select XXX>
now allows for folder selection from filtered list. -
Support for adding properties with
---
block in templates.
๐ Date & Time Enhancements
date.daysUntil
added.formattedDateTime
now supports bothstrftime
andmoment.js
.now
works correctly withoffsetDays
.date8601
bug fixed.- Updated to match NotePlanโs week numbering and week start settings.
๐งพ Note & Task Utilities
-
New functions in
NoteModule
:note.currentNote()
note.getRandomLine()
openTasks
,completedTasks
,openChecklists
,completedChecklists
-
Added
eventDate
andeventEndDate
for use with Meeting Notes. -
Stoic quotes, Bible verses, journaling questions now available in
web.services
.
๐ Web Services Enhancements
web.services
now globally accessible with automaticawait
.- Improved timeout messages for advice, verse, quote, and weather services.
๐ Documentation
- All plugin documentation links now point to the new documentation site.
Thanks to everyone who submitted feature requests, especially @jgclark and Tim Shaker! As always, feedback is welcome.
Templating is a template language plugin for NotePlan that lets you insert variables and method results into your notes. It will also let you execute custom JavaScript constructed in the templates providing a rich note taking system.
Documentation
๐ This README provides a quick overview of Templating, visit Templating website for comprehensive documention.
NOTE: Start Here: Templating Documentation
Commands
All commands can be invoked using the NotePlan Command Bar (Command-J
then /
) which NotePlan has reserved for plugin activation. Or by selecting ๐งฉ Templating
from the Plugins menu)
Once the command bar is displayed, you can continue typing any of the following commands to invoke the appropriate plugin command. In some case where specifically noted, you can alternately invoke the plugin command at the current insertion pointer within your document.
๐ Visit Templating website for comprehensive documention
Command | Available Inline | Description |
---|---|---|
np:append | Yes | Appends selected template at end of current note (will show list of all available templates) |
np:insert | Yes | Insert selected template at cursor (will show list of all available templates) |
np:invoke | Yes | Invoke Template Command, using location key in template to determine injected template |
contents into current | ||
np:new | Yes | Creates a new note from selected template and supplied note name |
np:qtn | Yes | Invokes Quick Note Generation (displays list of all type: quick-note ) |
np:update | Yes | Invokes settings update method |
np:version | Yes | Displays current Templating version |
License
Copyright ยฉ 2022 Mike Erickson Released under the MIT license
Credits
Codedugeon Toolbox for NotePlan written by Mike Erickson
E-Mail: [email protected]
Support: https://github.com/NotePlan/plugins/issues
Twitter: @codedungeon
Website: codedungeon.io