[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically update plain list checkboxes when removing nested list
From: |
Ihor Radchenko |
Subject: |
Re: Automatically update plain list checkboxes when removing nested list items? |
Date: |
Sun, 01 Sep 2024 16:38:03 +0000 |
"Rohit Patnaik" <quanticle@quanticle.net> writes:
> I have a question about plain list checkboxes. If I have a plain list, as
> follows:
> ...
> Then, if it turns out that Sub-item 3 is unnecessary, I can delete it with
> C-k:
>
> - [-] Item 1
> - [X] Sub-item 1
> - [X] Sub-item 2
>
> However, Item 1's checkbox is in the intermediate state, even though all of
> its
> sub-items have been completed.
>
> I'm wondering if there's a way that I can delete Sub-item 3 and update the
> Item
> 1 checkbox all at once. Right now, I have to move the cursor back up to Item 1
> and hit C-c C-c to force the checkbox to update.
There is no such way readily available, AFAIK.
You might be able to do with appropriate after-change function, but
such things may cause performance degradation.
Another way might be an advice for org-kill-line (if your C-k is bound
to org-kill-line).
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: Automatically update plain list checkboxes when removing nested list items?,
Ihor Radchenko <=