all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-insert-heading-before-current
@ 2022-06-29 22:13 Tyler Grinn
  2022-07-08  6:58 ` org-insert-heading-before-current Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Tyler Grinn @ 2022-06-29 22:13 UTC (permalink / raw)
  To: emacs-orgmode


Hello,

In general, I like to order my headings from newest to oldest top to
bottom. I'm looking for a function which will prepend a heading at the
current level in the current subtree. Some examples:


              * Subtree              * Subtree
              ** Item 2      >>>     ** |
              ** Item 1|             ** Item 2
                                     ** Item 1
              
              
              
              * Parent               * Parent
              ** Child|              ** |
              *** Item 2     >>>     ** Child
              *** Item 1             *** Item 2
                                     *** Item 1



Best,

Tyler


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

* Re: org-insert-heading-before-current
  2022-06-29 22:13 org-insert-heading-before-current Tyler Grinn
@ 2022-07-08  6:58 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-07-08  6:58 UTC (permalink / raw)
  To: Tyler Grinn; +Cc: emacs-orgmode

Tyler Grinn <tylergrinn@gmail.com> writes:

> In general, I like to order my headings from newest to oldest top to
> bottom. I'm looking for a function which will prepend a heading at the
> current level in the current subtree. Some examples:
>
>
>               * Subtree              * Subtree
>               ** Item 2      >>>     ** |
>               ** Item 1|             ** Item 2
>                                      ** Item 1

One can implement this using prefix arguments for org-insert-heading.
Similar to the existing C-u and C-u C-u arguments (see the docstring of
org-insert-heading).

Patches are welcome. (If you find this feature sufficiently important,
feel free to implement this new functionality and submit the patch)

Best,
Ihor


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

end of thread, other threads:[~2022-07-08  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-29 22:13 org-insert-heading-before-current Tyler Grinn
2022-07-08  6:58 ` org-insert-heading-before-current Ihor Radchenko

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.