* changed vscode setting to include extensions in link definition * updated docs to include extension in wikilink definition * updated readme to navigate to github pages instead of published site
2.0 KiB
Custom Note Macros
This extension gives you the ability to create custom note macros. It was heavily inspired by Foam's [daily-notes] functionality.
Installation
This extension is not included in the template
To install search note-macros in vscode or head to note-macros - Visual Studio Marketplace
Instructions
Run macro From command pallette
Simply use Ctrl+P or Alt+P depend on your os, and type Note Macros: Run A Macro then chose the macro you want to execute.
Create Custom Note Macros
Create your own custom macros by adding them to your settings.json (Code|File > Preferences > User Settings). A full example can be found at settings.json
For example:
This macro creates a Weekly note in the Weekly note Directory.
{
"note-macros": {
"Weekly": [
{
"type": "note",
"directory": "Weekly",
"extension": ".md",
"name": "weekly-note",
"date": "yyyy-W"
}
]
}
}
For an explanation of the fields please go to note-macros - Explanation of Fields
Add Keybindings to Run your Macros
in keybindings.json (Code|File > Preferences > Keyboard Shortcuts) add bindings to your macros:
{
"key": "ctrl+cmd+/",
"command": "note-macros.Weekly"
}
Issues and Feedback
If you have any issues or questions please look at the README.md on the note-macros GitHub.
If you run into any issues that are not fixed by referring to the README or feature requests please open an issue.