Fixes
Two hotfixes:
- Adjusts
/note/getback to pre-1.2 code so it no longer breaks Actions for Obsidian's "Check if note exists" action. 😬 - Fixes a bug in note creation where the default behavior regarding content insertion was not respected.
New stuff in 1.2
/note/create
- Adds support for applying a Templates (core plugin) template or Templater (community plugin) template after note creation (#69)
/note/append
- Adds an optional
create-if-not-foundparameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headlineparameter for appending text not to the end of a file but to a section below a heading (#68)
/note/prepend
- Adds an optional
create-if-not-foundparameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headlineparameter for prepending text not to the beginning of a file but to a section below a heading (#68)
/daily-note/create
- Adds support for applying a Templates (core plugin) template or Templater (community plugin) template after note creation (#69)
/daily-note/append
- Adds an optional
create-if-not-foundparameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headlineparameter for appending text not to the end of a file but to a section below a heading (#68)
/daily-note/prepend
- Adds an optional
create-if-not-foundparameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headlineparameter for prepending text not to the beginning of a file but to a section below a heading (#68)
Changes in 1.2
- Incoming, malformed calls are now answered if possible: if an
x-errorparameter was passed in, it will be used now, instead of Actions URI just doing nothing. (#72) file&folderparameter validation is now more strict where the parameter is supposed to reference an existing path, and will return a "bad request" error if the referenced file/folder couldn't be found. Examples for clarification:filein/note/rename,folderin/folder/delete; but notfilein/note/create(as here the parameter references a file yet to be created). (#72)
Removals in 1.2
- The deprecations made in 0.18.0 are now feasting with the Gods.