[Top][All Lists]

[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: Bernt Hansen
Subject: Re: [O] How to move up/down a headline but not the subtree?
Date: Tue, 10 Jul 2018 13:51:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

address@hidden writes:

> Neil Jerram writes on Thu  5 Jul 2018 11:46:
>  > > What I would like to do is to be able to move a headline with
>  > > everything up to (but not including) its first subheading.
>  > >
>  > > Does anyone know how to do that?  
>  > >
>  > > I am also interested in knowing if there are specific (deep?)
>  > > reasons why this seemingly basic operation, which I see as the
>  > > analogous of org-do-promote/demote and perform very often with
>  > > standard (but tedious) emacs editing commands, is not already
>  > > implemented.

This only works if the task you want to deal with is level 2 or greater
(i.e. there is a level 1 task above it)

M-S-left M-right C-c C-w (use refile to move this heading somewhere

This promotes all the subheadings one level and detaches the head from
the following stuff so you can move it alone.

Is that what you are looking for?

I regularly capture single level tasks and refile things into trees
later.  If it's filed wrong changing the structure isn't all that hard
with the above commands.  You just don't want to leave the subtasks
orphaned without a parent task (by skipping a level) so that is why I
promote with sublevels first and then demote just the parent task so it
becomes the same level as the subtasks.

Hope that helps.


reply via email to

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