* added support for target date variables in daily note template
* added FOAM_DATE_* variables to resolver
* Document `FOAM_DATE_*` template variables
* Add CHANGELOG entry
Co-authored-by: Michael Overmeyer <michael.overmeyer@shopify.com>
* Add the functionality to include notes in a note
* Add proposal of embedding
* Add tests for including notes
* Add documentation for inclusion feature
* Add a frontmatter metadata parser
* Use the template metadata to determine the filepath to use
* Document template metadata
* Add name and description template metadata attributes
These are displayed in the template picker
* Document name and description template metadata attributes
* Add new `Create New Note` command
It is the streamlined counterpart to `Create New Note From Template`
* Simplify the variable Regex
\W is equivalent to [^A-Za-z0-9_]
* Fix: Right links and formatting
* Docs: Run markdownlint to automatically fix minor formatting errors
* Style: Format with markdownlint and not prettier
* Use URI throughout dated-notes
* Fix typos in comments
* Allow absolute paths in `openDailyNote.directory`
This allows users to press the `alt-d` shortcut to open the daily note
from any instance of VSCode, not just within the `foam-template` repo.
* Combine steps
* Cancel if escape pressed in any step
* New template command
* Execute "create new template" when no templates found
* Provide inline documentation
* Add tests
* Add docs for the feature
Co-authored-by: Jonathan <jonny@mondago.com>
* added workspace WIP
* workspace supports resources
* uri check more lenient (was causing bug by not recognizing some objects)
* added placeholder resource type
* consolidated code in FoamWorkspace and added more tests
* updated all modules to use FoamWorkspace
* fixed FoamWorkspace.getConnections function
when links or backlinks are not present it no longer adds `undefined` to the connection list
* fix in workspace handling of direct links
* consolidated id/name generation functions
* added test for wikilink resolution when several notes have same filename
* removed reference to graphMiddleware in foam-local-plugins doc
graph middleware won't be supported with the `FoamWorkspace`. Support for the markdown provider remains
* removed support for graph middleware, graphlib dependency, and old note-graph implementation
* Add graph style to VSCode settings
* Update default to an empty object
* Add function to retrieve the graph style from the settings
* Implement the graph custom styling setting
The implementation makes use of the webview communication mechanism to
switch messages between the webview and the graph.
It works as follows:
- When the webview is loaded, it now sends a single request to VSCode,
the request asks VSCode for the graph style
- When VSCode answers with the style, the graph style is updated and
the webview loading process continues as normal.
The style change does not modify the API, in fact it makes use of the
shadiest programming tatic ever, *global variables* to remain
compatible.
The style object *currently* supports four base fields:
- background: string
- fontSize: int
- highlightedForeground: string
- node: object
- note: string
- nonExistingNote: string
- unknown: string
* Simplify null handling logic
* Remove debug logs
* Rename style setting
* Rename message style type
* Remove forgotten debug log
* Refactor the code to match model & action
* Add missing break
* Allow for dynamic style updates
* Fix the window loading bug
* Implement a permanent fix to the bug
* Replace `nonExistingNote` with `placeholder`
* Include the new graph style feature in the docs
* Remove unnecessary async
* Remove unused case
* reorganized and updated foam docs
* minor changes to vscode extension readme
* added 404 page and minor changes
Co-authored-by: Joe Previte <jjprevite@gmail.com>