From v11.7.0, notes stored in /Hints/Command Bar (see) are used as custom Command Bar articles.
Several possible things may happen when such a note item is selected from the list of matches, though typically only one of the following will take place (the attribute tested in in the matched article's note):
- If $IsAction is:
-
true, the $Text of the listed article holds an action to be performed. -
false, the article's $Text text is displayed in a temporary preview window.
-
- If $URL holds a value (i.e. is not empty), the stored URL is opened in the default browser.
- If $File holds a local path (i.e. is not empty), the file path is opened in its default application (as per OS/Finder). This can also be used to switch to other applications, to show a folder in Finder, or to run a script.
If a Command Bar note has $HTMLMarkdown set to true and the note has an $HTMLPreviewCommand set, then that note is assumed to contain markdown text and the processed markdown is displayed in the preview window. The stylesheet in /Hints/Preview/styles is used for this display, if that note exists.
See also—notes linking to here: