19

This answer describes how to move point to the next or previous heading.

I would like to move point to the next or previous heading, which is one level higher up the tree (at the parent level).

For example:

* One
** OneA
** OneB []
** OneC
* Two

If point is the [], I would like to move point to * One or * Two immediately.

SabreWolfy
  • 1,378
  • 1
  • 13
  • 26

3 Answers3

34

C-c C-u runs the command outline-up-heading, which moves up to the parent heading. C-c C-f runs the command org-forward-same-level (or org-forward-heading-same-level as of org mode 9.1.9), which moves forward to the next heading at the same level. You can mix and match as you like to get what you need.

C-c C-j runs the command org-goto, which provides a general interface for quickly navigating through all headings.

This is explained in the orgmode manual, along with other related commands.

miguelmorin
  • 1,751
  • 11
  • 33
Tyler
  • 21,719
  • 1
  • 52
  • 92
  • 1
    Upvote for `org-forward-same-level`. I searched org functions for something like this starting with `org-next-` (similar to `org-next-visible-heading`). – Doug Harris May 06 '19 at 17:47
  • 1
    I wish there were an `outline-down-heading`, for symmetry with `outline-up-heading`. As a result, going down to the next parent requires 2 commands (`outline-up-heading` then `org-forward-same-level`) instead of 1 (`outline-down-heading`). – mellow-yellow Dec 10 '21 at 15:55
11

As the other answer on that post points out, org-mode is built on top of outline-mode, so you have access to all of the outline motion commands. According to the manual, you can use:

C-c C-f Move point to the next visible heading line at the same level as the one point is on (outline-forward-same-level).

C-c C-b Move point to the previous visible heading line at the same level (outline-backward-same-level).

C-c C-u Move point up to a lower-level (more inclusive) visible heading line (outline-up-heading).

Dan
  • 32,584
  • 6
  • 98
  • 168
-1

On headline invoke the command outline-hide-other by pressing M-x outline-hide-other RET, unfortunately the standard key combo to invoke C-c C-o is rebound by org-mode

JohnDoe
  • 203
  • 1
  • 8