Skip to content

fix(pipe): do not skip webr code chunks in qmd document - #625

Merged
jalvesaq merged 1 commit into
mainfrom
fix/pipe-detection-webr-chunks
Nov 4, 2026
Merged

jalvesaq merged 1 commit into
mainfrom
fix/pipe-detection-webr-chunks

Conversation

@PMassicotte

@PMassicotte PMassicotte commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

I often use the pipe chain breaker

create_maps("nv", "RSendChain", "sc", "<Cmd>lua require('r.send').chain()")

and this was not working with webr code chunk. I was getting

The cursor is not inside a piped expression

With this PR, all r-related code chunks are detected, including webr code chunks. The pipe chain breaker now works with webr code chunks.

I often use the pipe chain breaker (https://github.com/R-nvim/R.nvim/blob/0cfd62ac84505cd33b96949d083214f30cd040e3/lua/r/maps.lua#L277) and this was not working with webr code chunk. I was getting

The cursor is not inside a piped expression

With this PR, all r-related code chunks are detected, including webr
code chunks. The pipe chain breaker now works with webr code chunks.
@jalvesaq

jalvesaq commented Nov 4, 2026

Copy link
Copy Markdown
Member

Thank you!

@jalvesaq
jalvesaq merged commit ec535d3 into main Nov 4, 2026
13 checks passed
@jalvesaq
jalvesaq deleted the fix/pipe-detection-webr-chunks branch November 4, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants