How to know the current org headline?

* A
...
** B
... 
*** C
... #cursor here

How to know the full name of C without moving cursor, is there any interactive function like org-current-closet-headline that can echo "C" in minibuffer?

Posted Mar 11, 2020, 1:56 AM UTC

54
gusbrs•

It's not exactly what you are asking, but you might be interested in https://github.com/alphapapa/org-sticky-header

5
github-alphapapa•

Thanks for mentioning that. Also, Eldoc mode shows the current outline in the minibuffer and is built-in to Emacs/Org. I use them both. :)

cc: u/FirstLoveLife

3
FirstLoveLifeOP•

This package is awesome, thanks!

2
mankofffoo•

Native function:

​

```

(org-display-outline-path &optional FILE CURRENT SEPARATOR

JUST-RETURN-STRING)

​

Display the current outline path in the echo area.

​

If FILE is non-nil, prepend the output with the file name.

If CURRENT is non-nil, append the current heading to the output.

SEPARATOR is passed through to ‘org-format-outline-path’. It separates

the different parts of the path and defaults to "/".

If JUST-RETURN-STRING is non-nil, return a string, don’t display a message.

```

4