emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH 0/4] Structure editing when region is active
@ 2023-01-15 12:31 Ihor Radchenko
  2023-01-15 12:31 ` [PATCH 1/4] Preserve active region after structure edits Ihor Radchenko
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Ihor Radchenko @ 2023-01-15 12:31 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Ihor Radchenko

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>




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-04-02 14:18 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-15 12:31 [PATCH 0/4] Structure editing when region is active Ihor Radchenko
2023-01-15 12:31 ` [PATCH 1/4] Preserve active region after structure edits Ihor Radchenko
2023-01-15 12:31 ` [PATCH 2/4] Preserve active region when toggling heading state Ihor Radchenko
2023-01-15 12:31 ` [PATCH 3/4] org-metaup, org-metadown: Move subtrees in active region Ihor Radchenko
2023-01-15 12:31 ` [PATCH 4/4] org-manual.org: Document changes in 8f6fcd709, 5719a8163, and eda9909a9 Ihor Radchenko
2023-01-16  0:24 ` [PATCH 0/4] Structure editing when region is active Samuel Wales
2023-01-16 11:17   ` Ihor Radchenko
2023-01-17  1:45     ` Samuel Wales
2023-01-17  9:46       ` Ihor Radchenko
2023-01-18  1:11         ` Samuel Wales
2023-01-18 10:14           ` Ihor Radchenko
2023-02-04 22:45             ` Samuel Wales
2023-02-05 11:11               ` Ihor Radchenko
2023-02-04 13:54 ` Ihor Radchenko
2023-02-06 21:00   ` Rudolf Adamkovič
2023-02-07 10:56     ` Ihor Radchenko
2023-02-15 18:36       ` Rudolf Adamkovič
2023-02-15 20:35         ` Ihor Radchenko
2023-02-18 21:18           ` Philipp Kiefer
2023-04-02 14:19             ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).