Skip to content

Commit

Permalink
Merge pull request #83 from Code-Inspect/various-improvements
Browse files Browse the repository at this point in the history
Various small fixes and improvements
  • Loading branch information
EagleoutIce authored May 8, 2024
2 parents b1dcdf2 + 5c1870e commit cb26e96
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Binary file modified media/reconstruct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down

0 comments on commit cb26e96

Please sign in to comment.