Skip to content

1.15-beta-18

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 27 Nov 19:48
· 306 commits to master since this release

New Features 🎉

Share toolbars with script items as links, and export/import to/from Note Toolbar Callouts.

Script items can now be used in Note Toolbar Callouts. See below for some examples; copy some toolbars with script items as callouts to see more attributes/examples.

> [!note-toolbar|right-mnbrder] Script Nav
> - [Create from Template]()<data data-templater-obsidian="createFrom" data-src="Templater/Basic Template.md" data-dest="&lt;%&quot;Basic &quot; + tp.file.last_modified_date(&quot;yyyy-MM-dd&quot;)%&gt;"/>
> - [Dataview Query Example]()<data data-dataview="query" data-expr="TABLE file.mtime AS &quot;Last Modified&quot; FROM &quot;Templater&quot; SORT file.mtime DESC" data-callout="asf"/>
> - [Hello World with JS Engine]()<data data-js-engine="exec" data-src="Scripts/JsEngine/HelloWorld.js"/>

Notes:

  • Attributes used depend on what's supported by the function used in the first parameter. Refer to the documentation for each script type for a table listing the applicable parameters:
    • data-expr = expression/query
    • data-src = source file, if executing a file (as opposed to an expression/query)
    • data-func = source function, if your script uses a function
    • data-args = source arguments, if accepted by your script, in JSON format
    • data-callout = output callout, if outputting to an output callout
    • data-dest = output file, if outputting to a file
  • Quotes and angle brackets must be escaped in attribute values (i.e., use &quot; &lt; &rt;).

Fixed

  • Copy/Share was not working (this.app TypeError) #190 Thanks @Moyf

Changed

  • Data attributes in callouts no longer require the ntb- portion of the attribute name, though they're still supported in everything but the above new attributes for backwards compatibility.

Full Changelog: 1.15-beta-17...1.15-beta-18