diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17d081e..5f1c2bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,8 +60,9 @@ jobs: - name: Get changelog id: changelog run: | - new_version=${{ steps.version.outputs.release_tag }} - changelog=$(awk -v version="$new_version" '/# Version / {printit = $3 == version}; printit;' "CHANGELOG.md") + new_version_tag=${{ steps.version.outputs.release_tag }} + new_version_num=${new_version_tag:1} + changelog=$(awk -v version="$new_version_num" '/# Version / {printit = $3 == version}; printit;' "CHANGELOG.md") echo "::set-output name=body::$changelog" - name: GitHub release uses: softprops/action-gh-release@v2 diff --git a/README.md b/README.md index 32c1690..2e63372 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,11 @@ Although it is not required, we recommend using the [R extension](https://market You can generate a [slice](https://github.com/Code-Inspect/flowr/wiki/Terminology#program-slice) of the currently highlighted variable in any R code by using the "Slice for Cursor Position" command. All code that is not part of the generated slice will then be grayed out. -To clear the slice highlighting, use the "Clear Slice Presentation" command. +Optionally, you can also use one of the two "Toggle Continuous Slice" options, which will automatically cause the slice to be updated when code changes occur or when the cursor is moved. -You can also reconstruct a piece of code based on the slice of a variable by using the "Slice for Cursor Position (Reconstruct)" command. The reconstructed code will be opened in a new file. +You can also view the reconstruction of a piece of code based on the current slice. The "Show Current Slice in Editor (Reconstruct)" command opens a view next to the current editor that will automatically update the reconstruction as you slice. + +To clear the slice highlighting, use the "Clear Current Slice Presentation" command. ![A screenshot of the extension being used to reconstruct a slice](media/reconstruct.png) diff --git a/media/reconstruct.png b/media/reconstruct.png index 203e0be..adfd1b7 100644 Binary files a/media/reconstruct.png and b/media/reconstruct.png differ diff --git a/package.json b/package.json index 55de296..4416a43 100644 --- a/package.json +++ b/package.json @@ -38,17 +38,17 @@ }, { "command": "vscode-flowr.slice.position", - "title": "Toggle Slice at the Current Position", + "title": "Toggle Continuous Slice at Current Position", "category": "flowR" }, { "command": "vscode-flowr.slice.follow.cursor", - "title": "Toggle Slice Following the Cursor", + "title": "Toggle Continuous Slice at Cursor", "category": "flowR" }, { "command": "vscode-flowr.slice.show.in.editor", - "title": "Show Current Slice in Editor", + "title": "Show Current Slice in Editor (Reconstruct)", "category": "flowR" }, {