Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle to show/hide code cells in Outline #647

Open
leocob opened this issue Jan 22, 2025 · 0 comments
Open

Toggle to show/hide code cells in Outline #647

leocob opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@leocob
Copy link

leocob commented Jan 22, 2025

Creating a separate issue to kindly request if it's possible to implement a toggle option to show/hide code cells in Outline, as suggested by @renatovargas here:

Thank you for this. I'm coming from posit-dev/positron#3822 and was instructed to bring it up here instead.

Not an issue, but a shameless request related to this. Great work btw. For Quarto documents (.qmd), RStudio shows only headings and subheadings in the outline, like you can see below on the left. Positron (and now I know VSCode), on the other hand, shows headings, subheadings and (code cell) like you can see on the right. Now this looks great for defined code chunk listings that are named for cross refs, but very crowded for the rest of unnamed code chunks.

image image

I am aware that you can click on "collapse all" like below, but that will collapse to first level headings only and you lose some ability to quickly navigate the document, especially in this case, where you go back and forth, perhaps trying out different elasticities in a very specific subsection to see poverty results at the end or going back to see how you set something up. I am aware also that you can individually open up each heading.

image

Now, I'm not saying to get rid of "(code cell)", because it encourages you to name your chunks and it's a superb feature, but I would appreciate it if there was perhaps a "toggle code cells" option, independent from collapse/expand for the Outline panel, so that you could limit it to headings and subheadings in Rmd, qmd's and other document type files. Thank you.

Originally posted by @renatovargas in #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants