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

Fold plain lists sublists #385

Open
Bietola opened this issue Apr 28, 2023 · 1 comment
Open

Fold plain lists sublists #385

Bietola opened this issue Apr 28, 2023 · 1 comment

Comments

@Bietola
Copy link

Bietola commented Apr 28, 2023

Say I have an org document containing:

* Hello
** There
    - Hey
        + How
        + Are
        + You

It would be nice being able to fold (i.e. press z-a) with cursor at line "+ Are" and see the sublist of "- Hey" be folded instead of the "** There" heading. Is this possible with an option I am not seeing or maybe it would make a nice feature?

@simoncarrignon
Copy link

I comment on here as I think it's indeed a nice feature ; more over that when using headings to get the headings the update using [%] are not forward to the upper levels, whereas it work when using sublists:w

If I have something like this:

* Highes [0%]
      - [-] low one: [66%]
            - [X] a
            - [X] b
            - [ ] c
      - [-] low two: [50%]
            - [ ] d  [0%]
                  - [ ] x
                  - [ ] y
            - [X] e

If I check x and y, then d becomes 100%, thus low two becomes 100% and this highest become 50% when I do \c#

* Highes [50%]
      - [-] low one: [66%]
            - [X] a
            - [X] b
            - [ ] c
      - [X] low two: [100%]
            - [X] d  [100%]
                  - [X] x
                  - [X] y
            - [X] e

If I use subheadins, which allows me to folds low one and low two like this:

* Highes [50%]
**  low one: [66%]
            - [X] a
            - [X] b
            - [ ] c
** low two: [50%]
            - [ ] d  [0%]
                  - [ ] x
                  - [ ] y
            - [X] e

low two get updated but not highest:

* Highes [0%]
**  low one: [66%]
            - [X] a
            - [X] b
            - [ ] c
** low two: [100%]
            - [X] d  [100%]
                  - [X] x
                  - [X] y
            - [X] e

Something may already exist that I have missed, in that case very sorry about that!

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

No branches or pull requests

2 participants