Skip to content

Releases: docs/open-reusables

1.7.1

30 Mar 18:00
e924ff7
Compare
Choose a tag to compare

Update the README with details of the extended features of the copy function.

1.7.0

30 Mar 17:13
1124f37
Compare
Choose a tag to compare

@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

02 Dec 11:51
ab8d9fa
Compare
Choose a tag to compare

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

14 Sep 08:45
cd4fced
Compare
Choose a tag to compare

@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

19 Aug 08:26
277e6e6
Compare
Choose a tag to compare

Update the package.json with the current repository URL.

1.5.0

19 Aug 07:32
62f67f0
Compare
Choose a tag to compare

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.