* Added setting to automatically convert wikilinks into md links on insertion/completion
* Improved Position mock and added mock for `extensions` namespace
Fixes#1464
* Support for image embed parameters (e.g. ![[img.png|300|center]])
Resolves#1328
Examples:
![[image.png]] // Original
![[image.png|300]] // Width only → 300px
![[image.png|50%]] // Percentage → responsive
![[image.png|300x200]] // Width × height
![[image.png|20em]] // With units
![[image.png|300|center]] // With alignment
![[image.png|300|Alt text]] // With alt text
* Documentation for image styling
* Add support for title in image links (#1262)
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Adds FOAM_DATE_DAY_ISO to variable resolver
- Adds dedicated and integrated tests for FOAM_DATE_DAY_ISO
- Updates documentation to describe FOAM_DATE_DAY_ISO usage and behavior
* Added FOAM_CURRENT_DIR template variable
* Added /research-issue Claude command
* Added integration test to create note using FOAM_CURRENT_DIR
* Updated documentation
* fixed comment
* Fail FOAM_CURRENT_DIR resolution if no editor nor workspace is open
- Template objects
- Separation of template loading, processing and file creation
- Support both Markdown and JavaScript templates
- Somewhat secure VM sandbox for JavaScript template execution in trusted workspaces
- Main entry point for note creation is `create-note` command
- Maintain backward compatibility with existing API
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* extension descriptions now reflect .vscode dir
including that image pasting is now supported natively
* Markdown AiO is still recommended
---------
Co-authored-by: Daniel Carosone <dan@geek.com.au>
* Introduced FOAM_TITLE_SAFE, which is the FOAM_TITLE variable with all the invalid path characters replaced by '-'
* (out of scope) In notes explorer show item description only when name is different from note title
* Addresses #1184
Currently tag completion only works in the front matter if you type a `#`
character. Adding the suggested tag will then mark the tag as a comment
```markdown
---
tags: #foo #bar
---
```
Update the tag completion provider to recognize if we are in the
front-matter, by using adding two functions to utils.ts. Because the
tag completion intellisense must be summoned with either the `#`
character or the keybinding (typically `ctrl+space`), allow
for 2 outcomes
1. if the tag is prefixed in the front matter with a `#`, remove it when
substituting the tag.
2. If `ctrl-space` is used, recognize we are on the `tags: ` line and
allow for non-`#` prefaced words.
The tag provider only works on the `tags: ` within the `tags: ` key of
the frontmatter. For example
```markdown
---
title: A title
tags:
- foo
- bar
- |
```
(where `|` is the cursor) will provide suggestions for tags.
Outside the `tags:` element, suggestions will not be provided.
```markdown
---
title: A title
tags:
- foo
- bar
dates:
- 2023-01-1
- |
```
* Refactor into functions for front matter & content
Refactor the main provider method into two
sub-functions, one for front matter, one for
regular content. Add helper functions to generate
the `CompletionItems` and to find the start & end
indices of the last match to `#{tag}`.
* Added title param in create-note command
* Added utility functions for commands
* Use create-note command when dealing with placeholders
* Updated open-resource command to new pattern
* Pass workspace.isTrusted to createFilter
* Fixed bug when finding absolute paths in workspace without providing basedir
* open-resource command can also receive `uri` param to skip filtering step
* added tests
* added docs
* Added note filter and a few tests
* Added expression for filters and trusted workspace support
* Consolidate `include` and `exclude` into `path` parameter
* Added documentation
* fixing some unmatched links, daily-note path note, start graphviz/tags/properties clarification
fixed links that didn't actually link to their target, add discussion about creating daily-notes in path based off date, then clarifying notes about styling graph viz and tags while enhancing the note properties descriptions by describing how properties are described and which properties are custom, which are foam-specific, and which are foam-template-specific
* add filter view, default variables to graphviz, and viewing tags in graphviz
graphviz: discuss filter view, add all changeable variables to graph style example, tags: describe viewing tags in the graphviz
* add small note about learning yaml
* last push fixing up some todos
* making recommended changes from PR request
* Reorganize docs folder; isolate dev docs and user docs; integrate foam-template docs
* Rename how-to to getting-started
* Fixup all references
* Fix contribution-guide.md
* Fix asset references
* Fix user/index.md
* Spelling is good.
Thanks @DrakeWhu
* Add note about how to wite docs for foam