mirror of
https://github.com/foambubble/foam-template.git
synced 2025-07-26 20:08:59 +00:00
Compare commits
2 commits
e46f12aff0
...
0585ac535e
Author | SHA1 | Date | |
---|---|---|---|
|
0585ac535e | ||
|
b90eb07935 |
7 changed files with 20 additions and 13 deletions
|
@ -5,6 +5,9 @@
|
||||||
// Foam's own extension
|
// Foam's own extension
|
||||||
"foam.foam-vscode",
|
"foam.foam-vscode",
|
||||||
|
|
||||||
|
// Tons of markdown goodies (lists, tables of content, so much more)
|
||||||
|
"yzhang.markdown-all-in-one",
|
||||||
|
|
||||||
// Prettier for auto formatting code
|
// Prettier for auto formatting code
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
|
|
|
@ -10,13 +10,13 @@ This command creates a note.
|
||||||
Although it works fine on its own, it can be customized to achieve various use cases.
|
Although it works fine on its own, it can be customized to achieve various use cases.
|
||||||
Here are the settings available for the command:
|
Here are the settings available for the command:
|
||||||
|
|
||||||
- notePath: The path of the note to create. If relative it will be resolved against the workspace root.
|
- `notePath`: The path of the note to create. If relative it will be resolved against the workspace root.
|
||||||
- templatePath: The path of the template to use. If relative it will be resolved against the workspace root.
|
- `templatePath`: The path of the template to use. If relative it will be resolved against the workspace root.
|
||||||
- title: The title of the note (that is, the `FOAM_TITLE` variable)
|
- `title`: The title of the note (that is, the `FOAM_TITLE` variable)
|
||||||
- text: The text to use for the note. If also a template is provided, the template has precedence
|
- `text`: The text to use for the note. If also a template is provided, the template has precedence
|
||||||
- variables: Variables to use in the text or template
|
- `variables`: Variables to use in the text or template
|
||||||
- date: The date used to resolve the FOAM*DATE*\* variables. in `YYYY-MM-DD` format
|
- `date`: The date used to resolve the FOAM*DATE*\* variables. in `YYYY-MM-DD` format
|
||||||
- onFileExists?: 'overwrite' | 'open' | 'ask' | 'cancel': What to do in case the target file already exists
|
- `onFileExists?: 'overwrite' | 'open' | 'ask' | 'cancel'`: What to do in case the target file already exists
|
||||||
|
|
||||||
To customize a command and associate a key binding to it, open the key binding settings and add the appropriate configuration, here are some examples:
|
To customize a command and associate a key binding to it, open the key binding settings and add the appropriate configuration, here are some examples:
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ This list is subject to change.
|
||||||
|
|
||||||
- [Foam for VSCode](https://marketplace.visualstudio.com/items?itemName=foam.foam-vscode) (alpha)
|
- [Foam for VSCode](https://marketplace.visualstudio.com/items?itemName=foam.foam-vscode) (alpha)
|
||||||
- [Markdown All In One](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one)
|
- [Markdown All In One](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one)
|
||||||
- [Paste Image](https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image)
|
- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
|
||||||
|
|
||||||
## Extensions For Additional Features
|
## Extensions For Additional Features
|
||||||
|
|
||||||
These extensions are not (yet?) defined in `.vscode/extensions.json`, but have been used by others and shown to play nice with Foam.
|
These extensions are not defined in `.vscode/extensions.json`, but have been used by others and shown to play nice with Foam.
|
||||||
|
|
||||||
- [Emojisense](https://marketplace.visualstudio.com/items?itemName=bierner.emojisense)
|
- [Emojisense](https://marketplace.visualstudio.com/items?itemName=bierner.emojisense)
|
||||||
- [Markdown Emoji](https://marketplace.visualstudio.com/items?itemName=bierner.markdown-emoji) (adds `:smile:` syntax, works with emojisense to provide autocomplete for this syntax)
|
- [Markdown Emoji](https://marketplace.visualstudio.com/items?itemName=bierner.markdown-emoji) (adds `:smile:` syntax, works with emojisense to provide autocomplete for this syntax)
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
|
|
||||||
This #recipe allows you to paste images on to your notes.
|
This #recipe allows you to paste images on to your notes.
|
||||||
|
|
||||||
You can directly link and paste images that are copied to the clipboard using either the [Paste
|
VScode (since
|
||||||
Image](https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image)
|
[1.79](https://code.visualstudio.com/updates/v1_79#_copy-external-media-files-into-workspace-on-drop-or-paste-for-markdown))
|
||||||
extension, or the [Markdown Image](https://marketplace.visualstudio.com/items?itemName=hancel.markdown-image) extension.
|
now has the ability to paste images from the clipboard, or drag-and-drop image
|
||||||
|
files, directly into markdown documents. The file will be created in the
|
||||||
|
workspace, and a link generated in Markdown format.
|
||||||
|
|
||||||
The former does not have MDX support (yet), the latter does.
|
VSCode settings under `Markdown > Copy Files` and `Markdown > Editor > Drop` can
|
||||||
|
be used to configure where the files get placed in your workspace, how they're
|
||||||
|
named, how conflicts with existing files are handled, and more.
|
||||||
|
|
Loading…
Add table
Reference in a new issue