Skip to content

Traverse chunks when using "Rename in Scope" in visual mode #15262

Open

Description

@ronblum

Rename-in-scope now traverses chunks of R Markdown and Quarto files in source mode (#4961). However, this isn't the case for visual mode. This request is to enable it for visual mode, as well.

Example cribbed from #4961:

  1. Create an R Markdown or Quarto file with the following:
```{r}
old_name <- 1
old_name
```

And here I print its value:

```{r}
old_name
```
  1. Switch to visual mode (if not already in it).
  2. Select old_name in the first chunk.
  3. Code -> Rename in Scope
    • Only the instances of old_name in the first chunk are selected

In source mode, the instance in the second chunk also gets selected.

Activity

  1. added
    new
    visual markdown
    and removed
    new
    on Oct 2, 2024
  2. added this to the Later milestone on Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementvisual markdown

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions