Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various small fixes and improvements #83

Merged
merged 5 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "Continuously Slice" options, which will automatically cause the slice to be updated when code changes occur or when the cursor is moved.

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.

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.
To clear the slice highlighting, use the "Clear Slice Presentation" command.
Ellpeck marked this conversation as resolved.
Show resolved Hide resolved

![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": "Continuously Slice at Current Position",
"category": "flowR"
},
{
"command": "vscode-flowr.slice.follow.cursor",
"title": "Toggle Slice Following the Cursor",
"title": "Continuously Slice at Cursor",
Ellpeck marked this conversation as resolved.
Show resolved Hide resolved
"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
Loading