emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fr] org-copy-subtree or so with no header


From: Samuel Wales
Subject: Re: [fr] org-copy-subtree or so with no header
Date: Tue, 9 Jan 2024 20:37:47 -0700

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.]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]