Skip to content

Feature Request: Add Outline Support for Named Code Sections in R Code Chunks #918

@UrielMenalled

Description

@UrielMenalled

Summary

In Positron (but not RStudio), named code sections and headers (e.g., # Section One ----, # Section Two ====) within R code chunks in Quarto documents are recognized and appear in the document outline, aiding navigation. Currently, these sections are not detected in the outline feature when editing Quarto documents, resulting in a loss of navigation usefulness compared to RStudio (see video below).

Motivation

  • Improves Quarto IDE navigation for R users adopting Positron
  • Increases parity between RStudio, Positron, and Quarto experience
  • Helps users organize complex R scripts within Quarto documents

Example

A Quarto R code chunk such as:

#| label: test

# Section One ----
# Section Two ====
### Section Three ####

Should show “Section One”, “Section Two”, and “Section Three” in the outline panel for fast navigation, the way RStudio currently does.

Related Context

Feature Request

Please implement recognition of section headers inside R code chunks of Quarto documents, so they appear in the IDE’s Outline/navigation pane, matching RStudio user experience.

Screen.Recording.2026-02-16.at.11.50.42.AM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions