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

R: provide an outline in the editor #1427

Closed
jennybc opened this issue Sep 27, 2023 · 8 comments
Closed

R: provide an outline in the editor #1427

jennybc opened this issue Sep 27, 2023 · 8 comments
Labels

Comments

@jennybc
Copy link
Member

jennybc commented Sep 27, 2023

I'm really missing the outline view that RStudio gives for R scripts. Today, for me, it happens to be about looking at test files, but I think it's a feature I miss in general.

https://posit.co/blog/rstudio-v1-4-preview-little-things/

Screenshot 2023-09-27 at 8 28 01 AM
@jmcphers
Copy link
Collaborator

We do have outlining implemented; if you like it alongside your script you can drag it from its default location in the Explorer bar over to the secondary sidebar.

image

Of course now you can't see the Session tab concurrently; AFAIK it isn't currently possible to dock a pane inside an editor so you can get an RStudio-like experience.

@jennybc

This comment was marked as off-topic.

@jmcphers

This comment was marked as off-topic.

@jennybc jennybc changed the title R: provide an outline R: provide an outline in the editor Sep 27, 2023
@jennybc
Copy link
Member Author

jennybc commented Sep 27, 2023

OK let it be known this issue is now about the improving the ergonomics of the outline, i.e. making it feel more integrated with the editor. The issue specific to test files is #1428.

@kevinushey
Copy link
Contributor

I feel like VSCode's answer to this in the minimap, e.g.

Screenshot 2023-09-27 at 11 10 59 AM

but honestly, I'm not a huge fan of that compared to the directly-accessible outline.

@jmcphers
Copy link
Collaborator

The minimap looks cool but it doesn't offer any sort of searchable or clickable navigation targets. It's really just a very thick and beautiful scroll bar. I know people like it (and I use it occasionally myself) but it definitely isn't a replacement for an outline.

@jennybc
Copy link
Member Author

jennybc commented Feb 23, 2024

I am living in harmony with the OUTLINE these days, so #1428 covers my remaining wish, which is that the OUTLINE learns how to work with test files.

@jennybc jennybc closed this as completed Feb 23, 2024
@wesm wesm added the lang: r label Feb 29, 2024
@IyarLin
Copy link

IyarLin commented Jul 2, 2024

The VSCode outline does not support sections, sub sections etc in a way that makes it easy to navigate a long script like the Rstudio IDE does. Would really love having those sections/subsections including indentations like it's in the Rstudio

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants