You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RStudio Edition : Desktop
RStudio Version : 1.2.1335
OS Version : Windows 10
R Version : 3.5.1
Steps to reproduce the problem
Minimal reproducible example:
# Section 1 ####
# This will collapse with Alt+O
#####
# Section 2 ####
# This will not collapse with Alt+O
Describe the problem in detail
Folding won't work if section is preceded by another line of at least five hash symbols. Is this a bug or feature? I often add lines of hash symbols before large sections when I have very long scripts for readability, but then we lose this precious folding feature.
Describe the behavior you expected
I expect all sections to fold if the heading contains at least 5 hash symbols (like for Section 1 in the example above).
Thank you for raising this issue. We will review it as we work on development of future versions of RStudio.
Reproduced using RStudio Desktop 1.2.1335 on MacOS 10.14 and Windows 10, and RStudio Server on Red Hat 7.6. This was also an issue in 1.1.463, so this is not a regression.
Note a correction: this is an issue with at least five hash symbols.
ronblum
changed the title
"Collapse All" (Alt+O) not working... [when section preceded by four dashes]
"Collapse All" (Alt+O) not working. when section preceded by five hash symbols
May 24, 2019
ronblum
changed the title
"Collapse All" (Alt+O) not working. when section preceded by five hash symbols
"Collapse All" (Alt+O) not working when section preceded by five hash symbols
May 24, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
stalebot
added
the
stale
Issues which have been closed automatically due to inactivitiy.
label
Feb 6, 2021
System details
Steps to reproduce the problem
Minimal reproducible example:
Describe the problem in detail
Folding won't work if section is preceded by another line of at least five hash symbols. Is this a bug or feature? I often add lines of hash symbols before large sections when I have very long scripts for readability, but then we lose this precious folding feature.
Describe the behavior you expected
I expect all sections to fold if the heading contains at least 5 hash symbols (like for Section 1 in the example above).
Note: I mistakenly posted this bug in the forums at first: https://community.rstudio.com/t/collapse-all-alt-o-not-working-when-section-preceded-by-four-dashes/31061.
The text was updated successfully, but these errors were encountered: