Skip to content

Feature Request: In qmd file outline view, in source mode, include R functions (that are in R chunks) #880

@donboyd5

Description

@donboyd5

Outline view for qmd files in source mode shows headers and chunks, but does not show functions within chunks. (This is true for R chunks. I don't know about other languages.)

Desired feature: Include functions in the outline.

This is a nice-to-have -- useful in early stages of project development before functions are broken out to separate files, where they do show in outline view and symbol search. It is particularly useful for a long report in qmd/R/typst, because a typst project must be in a single qmd file (or a set of sourced qmd files) rather than a book project, so the qmd file can be long and include many functions until they are consolidated in R files.

Fallback desired feature: Include functions in qmd file symbol finder (e.g., ctrl+t on my Windows computer, apparently cmd+t on some computers). They don't currently show.

Apologies if this is discussed already. I looked but did not find it.

Note: Initially posted in Positron #11237.

Positron Version: 2026.01.0 (user setup) build 138
Code - OSS Version: 1.106.0
Commit: posit-dev/positron@703dfcd
Date: 2025-12-24T07:49:32.328Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions