From: Samuel Wales <samologist@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [fr] org-copy-subtree or so with no header
Date: Tue, 9 Jan 2024 20:37:47 -0700 [thread overview]
Message-ID: <CAJcAo8vkH+kv3k7FftcaGShNdMVZH4poxtzhnRnSwoYTfdESxg@mail.gmail.com> (raw)
In-Reply-To: <87r0iqw4df.fsf@localhost>
hi ihor,
more below.
On 1/9/24, Ihor Radchenko <yantar92@posteo.net> wrote:
> Samuel Wales <samologist@gmail.com> writes:
>
>> i set c speed command to copy subtree. i'd like to set C to copy
>> subtree without top header. idk how to expand subtree temporarily.
>>
>> i thought it MIGHT be a useful fr.
>
> May you illustrate your request with an example?
sure, thanks for interest.
* top top
^*** my example header
text
this is an entry
it's also a subtree
it is an example of an almost trivial subtree, i.e. text but no child entries.
with point at ^, i press c, which copies the whole example entry
including the header/heading. great speed command. it is configured
by assigning org-copy-subtree to the speed command.
what i want is, the exact same thing, which i will assign to C, except
that the line that point is on is not part of hte copy. essentially
an org-copy-subtree--no-heading command.
[more complexity, perhaps unnecessary: if there are child entries,
again the result is exactly like org-copy-subtree except without the
line/header/heading point is on.]
===
[there is more that could in principle be discussed as an /analogous/
topic, perhaps for the picky sake of keeping orthogonality across org
features in mind, but i don't have it in me to cover. to adumbrate:
1] allowing choosing exporting a subtree with or without the top
header similar to the above and 2] allowing /forcing/ exporting
subtrees, again with or without exporting the top header just as in
[1], even when the todo kw on the header in conjunction with
org-export-with-tasks has inhibited exporting the subtree. i have for
many years waned both feaures also. but i might not be able to
provide further clarification or particpate in the discussion for
unrelated reasons. it is just an extraneous comment for those who get
what i am talking about, if any.]
next prev parent reply other threads:[~2024-01-10 3:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-09 6:58 [fr] org-copy-subtree or so with no header Samuel Wales
2024-01-09 7:06 ` Samuel Wales
2024-01-09 22:04 ` Ihor Radchenko
2024-01-10 3:37 ` Samuel Wales [this message]
2024-01-11 15:53 ` Ihor Radchenko
2024-01-11 15:57 ` Ihor Radchenko
2024-01-12 2:18 ` Samuel Wales
2024-01-12 12:11 ` 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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJcAo8vkH+kv3k7FftcaGShNdMVZH4poxtzhnRnSwoYTfdESxg@mail.gmail.com \
--to=samologist@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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 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).