Releases: docs/open-reusables
1.7.1
1.7.0
@lucascosti extended the existing copy command to generate a reference for a reusable, variable, or feature flag based on the cursor's position:
- If you're in a reusable file, this creates the
{% data reusables.path.to.reusable %}
reference and copies it to the clipboard. - If you're in a variables file and on a variable definition line, this creates the
{% data variables.path.to.variablefile.variable-name %}
reference and copies it to the clipboard. - If you're in a feature flag file, this creates a versioning tag like
{% ifversion featureFlagName %}{% endif %}
and copies it to the clipboard.
CleanShot.2023-03-30.at.12.11.01.mp4
1.6.0
Major code refactor by @lucascosti that:
- Consolidates various regular expressions to improve code maintainability.
- Adds the ability for the extension to open reusables/feature versioning tags that contain whitespace control.
1.5.2
@lucascosti fixed a bug that would stop the extension working after you attempted to use the copier feature on some feature
entries in the front matter.
1.5.1
1.5.0
19 August 2022
@lucascosti modified the extension (PR #123) to allow you to open a feature flag file from the feature
versioning in the article's front matter (i.e. the data at the top of the markdown file).
For example, in articles with frontmatter like this:
versions:
feature: 'actions-caching'
If you place the cursor within the string assigned to feature
and activate the "Open reusable file" action of the extension - either from the command palette or by using the keyboard shortcut (Ctrl + Alt + o, or control + command + o) - the extension opens the file in which the feature flag is defined. This works if the feature is declared with single quotes, or without quotes.