Closed Ron89 closed 8 years ago
Sorry, I remembered the command wrongly...
<localleader>hn
is insert new heading after children.
<localleader>hh
is insert new heading before children.
But still, shouldn't we put the function of <localleader>h[N/n/h]
in to the document? Come to think of it, I didn't even know these keybinding until reading the code...
Actually, behavior of <localleader>hh
is still off, since it should have
create a heading before content
rather than after it. I'll leave this issue
open until
<localleader>hh
is correctedHm, actually I think the behavior is okay. Creating a heading before content
is something I wouldn't want to do. Heading and content belong together in my opinion .. but maybe Emacs org-mode implements things differently.
Technically, " insert heading, taking over all children " should include content. And yes, emacs version handle it differently. But it's your call.
orgguide updated.
As a simple example, in following structure
When using
<localleader>hh
onHeading-1-1
, insead of inserting a heading beforeHeading-1-2
, the new heading will be place immediately after content. This design prevents user from adding comment on the heading before moving into deeper headings. It also differs from how orgmode on emacs behaves(which is how it should have been). I believe the cause of the issue is that subtree parsing stops at the first non-heading content. Hence the followed subtree were mistreated as siblings rather than children.