posit-dev / posit-dev/positron
Execute Current Code Section (defined by special header comments) command
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
Positron Version: 2025.08.0 build 130
Code - OSS Version: 1.102.0
Commit: 76ddce53e85437b013671fe7d91a3a1c54f48341
Date: 2025-08-01T20:08:51.894Z
Electron: 35.6.0
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 23.6.0
Session details: R version 4.4.2 (2024-10-31)
Describe the issue:
I would like to use "Execute Current Code Section" in Positron like in RStudio (Ctrl + Alt + T). Also there is no thin vertical bars next to the outline.
Expected or desired behavior:
↑ Positron
- I'd like to run Section 1 by pressing Ctrl + Alt + T only when the cursor is in Section 1 (Lines 1–5 in this image).
- I'd like to display the thin vertical bar (see black arrow in the image) next to the outline to indicate where we are in the entire R script.
Could anyone tell me how I can use these features? If we can't now, then I hope they are implemented in a future version of Positron!
Thank you so much in advance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the request in Positron with an R script containing the special header-comment sections, using the described Ctrl + Alt + T command and outline view. Investigate the existing code-section execution and outline entry points. Done means the command runs only the section containing the cursor and the outline shows the section-position indicator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript
- Domain
- developer-experience, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100