* [fr] org-copy-subtree or so with no header
@ 2024-01-09 6:58 Samuel Wales
2024-01-09 7:06 ` Samuel Wales
2024-01-09 22:04 ` Ihor Radchenko
0 siblings, 2 replies; 8+ messages in thread
From: Samuel Wales @ 2024-01-09 6:58 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
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
1 sibling, 0 replies; 8+ messages in thread
From: Samuel Wales @ 2024-01-09 7:06 UTC (permalink / raw)
To: emacs-orgmode
[i should not have mentioned expanding subtree temporarily as idk how
to code it in general.]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
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
1 sibling, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2024-01-09 22:04 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
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?
--
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] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
2024-01-09 22:04 ` Ihor Radchenko
@ 2024-01-10 3:37 ` Samuel Wales
2024-01-11 15:53 ` Ihor Radchenko
2024-01-11 15:57 ` Ihor Radchenko
0 siblings, 2 replies; 8+ messages in thread
From: Samuel Wales @ 2024-01-10 3:37 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
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.]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
2024-01-10 3:37 ` Samuel Wales
@ 2024-01-11 15:53 ` Ihor Radchenko
2024-01-11 15:57 ` Ihor Radchenko
1 sibling, 0 replies; 8+ messages in thread
From: Ihor Radchenko @ 2024-01-11 15:53 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> * 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.
IMHO, this is a bit too niche use-case. I will see what others say.
--
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] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
2024-01-10 3:37 ` Samuel Wales
2024-01-11 15:53 ` Ihor Radchenko
@ 2024-01-11 15:57 ` Ihor Radchenko
2024-01-12 2:18 ` Samuel Wales
1 sibling, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2024-01-11 15:57 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> [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.]
If I understand correctly, 1] is covered by body-only option.
2] is probably a bug. It would help if you provide a more clear example
illustrating the problem.
--
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] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
2024-01-11 15:57 ` Ihor Radchenko
@ 2024-01-12 2:18 ` Samuel Wales
2024-01-12 12:11 ` Ihor Radchenko
0 siblings, 1 reply; 8+ messages in thread
From: Samuel Wales @ 2024-01-12 2:18 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
idk if 2 is a bug vs. overly strict behavior. org-export-with-tasks
is technically doing what it is documented to do. but only
technically.
it is not useful to me for it to fail to export when you explicitly
try to export a subtree that is forbidden by the combinatin of o-e-w-t
and the kw at top.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [fr] org-copy-subtree or so with no header
2024-01-12 2:18 ` Samuel Wales
@ 2024-01-12 12:11 ` Ihor Radchenko
0 siblings, 0 replies; 8+ messages in thread
From: Ihor Radchenko @ 2024-01-12 12:11 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> idk if 2 is a bug vs. overly strict behavior. org-export-with-tasks
> is technically doing what it is documented to do. but only
> technically.
>
> it is not useful to me for it to fail to export when you explicitly
> try to export a subtree that is forbidden by the combinatin of o-e-w-t
> and the kw at top.
I still do not understand what problem you are talking about.
I tried
#+EXCLUDE_TAGS: foo
#+options: tasks:nil
* TODO <point> This is test :foo:
** Bar
** Baz
text
Then, I C-c C-e C-s t U and I got the subtree exported even though the
exported heading has both todo keyword and the excluded tag.
--
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] 8+ messages in thread
end of thread, other threads:[~2024-01-12 12:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).