all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Kiefer <phil.kiefer@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [FEATURE REQUEST] Make org-copy-subtree and org-cut-subtree work on an active region
Date: Thu, 19 Jan 2023 23:17:30 +0100	[thread overview]
Message-ID: <d95ba9ff-b9b7-392a-a088-73dce0ec83ab@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

When calling either org-copy-subtree or org-cut-subtree, check if there 
is an active region that starts on a headline and contains at least one 
more headline of the same level. If so, copy / cut all the subtrees 
touched by the region. This saves the user having to count the subtrees 
he / she wants to operate on in order to use the number as a prefix 
argument for the command. This change  would make the process easier and 
provide visual feedback.

Optionally require that the active region fully encloses two or more 
headlines and nothing else, i. e. that it begins at the start of one 
headline and terminates at the end of another headline.

Thanks.

[-- Attachment #2: Type: text/html, Size: 1095 bytes --]

             reply	other threads:[~2023-01-19 22:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19 22:17 Philipp Kiefer [this message]
2023-01-20 10:37 ` [FEATURE REQUEST] Make org-copy-subtree and org-cut-subtree work on an active region Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d95ba9ff-b9b7-392a-a088-73dce0ec83ab@gmail.com \
    --to=phil.kiefer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.