emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to move up/down a headline but not the subtree?


From: Eric S Fraga
Subject: Re: [O] How to move up/down a headline but not the subtree?
Date: Thu, 05 Jul 2018 14:39:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Thursday,  5 Jul 2018 at 14:07, address@hidden wrote:
> Eric S Fraga writes on Thu  5 Jul 2018 11:46:
>
>  > Well, it's a deterministic set of steps so you could record a macro
>  > to do the selection and kill?  Then all you have to do is move and
>  > yank?
>
> Would still be long...

You save the keyboard macro as a key binding and it would be no longer
than what you were asking for?  Maybe one key stroke longer.

>  > What was not clear in your OP was what happens to the first
>  > subheading?  Should it be promoted or does it suddenly become a
>  > child of another main heading?
>
> In my mind, everything except the headline and its associated text
> would stay unchanged, though your questions make me realize that a
> reasonable option would be that the whole subtree be promoted (but
> probably not just the 1st subheading).

But, as others have noted, this is a change of (semantic) structure and
not well defined which is arguably why there's no automatic way of doing
what you want.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4



reply via email to

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