Releases: czottmann/obsidian-actions-uri
1.2.2
Fixes
Two hotfixes:
- Adjusts
/note/get
back 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-error
parameter was passed in, it will be used now, instead of Actions URI just doing nothing. (#72) file
&folder
parameter 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:file
in/note/rename
,folder
in/folder/delete
; but notfile
in/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.
1.2.0
New stuff
/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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter 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-found
parameter for avoiding errors if the note doesn't exist yet (#67) - Adds an optional
below-headline
parameter for prepending text not to the beginning of a file but to a section below a heading (#68)
Changes
- Incoming, malformed calls are now answered if possible: if an
x-error
parameter was passed in, it will be used now, instead of Actions URI just doing nothing. (#72) file
&folder
parameter 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:file
in/note/rename
,folder
in/folder/delete
; but notfile
in/note/create
(as here the parameter references a file yet to be created). (#72)
Removals
- The deprecations made in 0.18.0 are now feasting with the Gods.
1.1.2
This is a minor release aimed at fixing an issue with opening notes after creation that came up during the Actions for Obsidian iOS TestFlight.
- [FIX] Cleans up opening/focussing notes
- [DEL] Removes outdated API references
1.1.0
Version 1.1.0
The plugin is stable enough and used in production as the companion plugin to my macOS/iOS app Actions for Obsidian. So the version number took a big leap to bring it mostly in line with the app. Nothing else will change, Actions URI will remain FOSS under a MIT License.
New stuff
- If you're unhappy with the global search, and use Omnisearch, you'll be delighted about the new
/omnisearch
routes (#59) - Actions URI should now handle unexpected exceptions outside its control more graceful (#60)
- I've added table of contents to the route pages in the documentation.
No longer broken
- Adds code for preventing a race condition in vaults w/ Templater enabled (#61)
0.18.0
Version 0.18.0
New stuff
The /note/create
route has a new optional if-exists
parameter to specify a strategy for dealing with an existing note. It overrides the default behavior (creating a new note by appending a numeric suffix to the base name) and can be set to skip
or overwrite
. if-exists=skip
will not create another note and instead return the named note as-is. if-exists=overwrite
will replace the existing note with a new one.
The/daily-note/create
route has a new optional if-exists
parameter to specify a strategy for dealing with an existing current daily note. It overrides the default behavior (returning an error) and can be set to skip
or overwrite
. if-exists=skip
will pretend the existing note was just created and return it. if-exists=overwrite
will trash the existing note and create a new daily note from scratch.
Changes
/note/create
: theoverwrite
parameter is deprecated and will be removed in a future release. Useif-exists=overwrite
instead./daily-note/create
: theoverwrite
parameter is deprecated and will be removed in a future release. Useif-exists=overwrite
instead.
0.17.0
Version 0.17.0
This release fixes a problem where operations would silently fail when the
queried file path contained a path segment with a leading or trailing space.
Please note that route /open/search
is deprecated as of this version, use
/search/open
instead.
- [FIX] Normalizes leading/trailing whitespace in path segments -- #54
- [CHG] Moves route
/open/search
→/search/open
-- #17 - [DOC] Marks route
/open/search
as deprecated -- #17 - [DOC] Removes docs for previously removed
/open/*
routes -- #17 - [DOC] Corrects docs to reflect reality -- #55
- [DOC] Corrects docs where callbacks are optional, not required -- #55
0.16.4
Hot Fix
- [CHG] Increases time waiting for search results in
/search/all-notes
to 2s [#50]
Version 0.16.0
This release brings new routes for dealing with folders and some additional endpoints to /note
. It also deprecates the old route /vault/list-folders
in favor of the new /folder/list
.
New
- Adds route
/note/delete
for deleting a note [#30] - Adds route
/note/rename
for renaming or moving a note [#30] - Adds route
/note/trash
for moving a note to the trash [#30] - Adds route
/folder/list
for fetching the list of available folders [#30] - Adds route
/folder/create
for creating a new folder or folder structure [#30] - Adds route
/folder/delete
for deleting a folder and all its contents [#30] - Adds route
/folder/rename
for renaming or moving a folder [#30] - Adds route
/folder/trash
for moving a folder to the trash [#30]
Deprecations
- Deprecates route
/vault/list-folders
in favor of/folder/list
[#30]
0.16.3
Hot Fix
- [FIX] Fixes handling of backslashes and colon characters in file names [#43]
Version 0.16.0
This release brings new routes for dealing with folders and some additional endpoints to /note
. It also deprecates the old route /vault/list-folders
in favor of the new /folder/list
.
New
- Adds route
/note/delete
for deleting a note [#30] - Adds route
/note/rename
for renaming or moving a note [#30] - Adds route
/note/trash
for moving a note to the trash [#30] - Adds route
/folder/list
for fetching the list of available folders [#30] - Adds route
/folder/create
for creating a new folder or folder structure [#30] - Adds route
/folder/delete
for deleting a folder and all its contents [#30] - Adds route
/folder/rename
for renaming or moving a folder [#30] - Adds route
/folder/trash
for moving a folder to the trash [#30]
Deprecations
- Deprecates route
/vault/list-folders
in favor of/folder/list
[#30]
0.16.2
Minor Fix
- [CHG] Shortens
*/rename
error messages
Version 0.16.0
This release brings new routes for dealing with folders and some additional endpoints to /note
. It also deprecates the old route /vault/list-folders
in favor of the new /folder/list
.
New
- Adds route
/note/delete
for deleting a note [#30] - Adds route
/note/rename
for renaming or moving a note [#30] - Adds route
/note/trash
for moving a note to the trash [#30] - Adds route
/folder/list
for fetching the list of available folders [#30] - Adds route
/folder/create
for creating a new folder or folder structure [#30] - Adds route
/folder/delete
for deleting a folder and all its contents [#30] - Adds route
/folder/rename
for renaming or moving a folder [#30] - Adds route
/folder/trash
for moving a folder to the trash [#30]
Deprecations
- Deprecates route
/vault/list-folders
in favor of/folder/list
[#30]
0.16.1
Hot Fix
- Adds graceful handling of the default "Default location for new notes" configuration setting [#41]
Version 0.16.0
This release brings new routes for dealing with folders and some additional endpoints to /note
. It also deprecates the old route /vault/list-folders
in favor of the new /folder/list
.
New
- Adds route
/note/delete
for deleting a note [#30] - Adds route
/note/rename
for renaming or moving a note [#30] - Adds route
/note/trash
for moving a note to the trash [#30] - Adds route
/folder/list
for fetching the list of available folders [#30] - Adds route
/folder/create
for creating a new folder or folder structure [#30] - Adds route
/folder/delete
for deleting a folder and all its contents [#30] - Adds route
/folder/rename
for renaming or moving a folder [#30] - Adds route
/folder/trash
for moving a folder to the trash [#30]
Deprecations
- Deprecates route
/vault/list-folders
in favor of/folder/list
[#30]