not really related, but wrt structure editing, is there anything that preserves integrity of levels? [my old maint version allows double demotion [perhaps this is related to inline tasks], and i wonder about org-yank, and org-lint does not complain.]
i have encountered cases in org where i find it annoying htat i hae to c-g to stop transient mark mode. will report if able. On 1/15/23, Ihor Radchenko <yanta...@posteo.net> wrote: > Hi, > > I'd like to propose a patchset that addresses some issues raised in > https://teddit.zaggy.nl/r/orgmode/comments/10b6ue6/orgmode_is_so_bad_at_rearranging_items_in_an/ > > 1. When acting on region, promotion, demotion, and other structure > editing commands immediately deactivate selection. It is annoying > when one wants to promote several headings togetehr multiple times. > > 2. M-<up>/<down> on region does not care if there are headings inside > region and simply treats region as plain text: > > * Heading 1 > text > ** Sub > * <mark>Heading 2 > * Heading 3<point> > > {M-<up>} > > * Heading 1 > text > * Heading 2 > * Heading 3 > ** Sub > > The patchset below addresses (2) by making org-metaup/org-metadown > aware of headings in region (when region starts at heading). > > In addition, it alters M-<left>/M-<right>/M-<up>/M-<down> to not > deactivate active selection (Transient mark mode). This way, one can > issue, say, M-<right> repeatedly without having to re-select > everything. > > Similarly, bulk editing commands like setting schedule, deadline, > tags, and todo do not deactivate region. > > I'd appreciate testing on edge cases and ideas for tests. > > Ihor Radchenko (4): > Preserve active region after structure edits > Preserve active region when toggling heading state > org-metaup, org-metadown: Move subtrees in active region > org-manual.org: Document changes in 8f6fcd709, 5719a8163, and > eda9909a9 > > etc/ORG-NEWS | 20 ++++++ > lisp/org-list.el | 3 +- > lisp/org.el | 146 +++++++++++++++++++++++++++------------ > testing/lisp/test-org.el | 54 +++++++++++++++ > 4 files changed, 179 insertions(+), 44 deletions(-) > > -- > 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> > > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com