quarto-dev / quarto-dev/quarto
Expand/Shrink Selection stops working inside of fenced divs (:::).
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
Bug description
Expand Selection (editor.action.smartSelect.expand) and Shrink Selection (editor.action.smartSelect.expand) stops working correctly if the R code chunk is inside a fenced div. It expands to select everything or select none.
Steps to reproduce
Following R code cell is an example where this behavior occurs. Expand Selection doesn't expand to brackets or line, it expands to all in the cell.
::: {.callout-note collapse="true"}
```{r}
library(stringr)
options(
max.print = 200
)
```
:::
### Actual behavior
_No response_
### Expected behavior
_No response_
### Your environment
_No response_
Contributor guide
No contributing guide indexed for this repository
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
Start by reproducing the provided R code chunk inside the fenced div and compare Expand Selection and Shrink Selection behavior with the same chunk outside it. Trace how fenced-div boundaries affect selection handling; done means expansion reaches brackets and lines normally instead of selecting the entire cell or nothing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100