On 2025-07-02 05:28, mb...@mbork.pl wrote:
Hi all,
with the point on a headline, I'd like to be able to get the positions
of the start and end of the current headline's title. How to do that?
Here's what I have, is there a better way?
For me, org-special-ctrl-a/e does that job, but I prefer in my case to
use it reversed (setq org-special-ctrl-a/e 'reversed)
the way you would need it is with t
docstring says:
When t, ‘C-a’ will bring back the cursor to the beginning of the
headline text, i.e. after the stars and after a possible TODO
keyword. In an item, this will be the position after bullet and
check-box, if any. When the cursor is already at that position,
another ‘C-a’ will bring it to the beginning of the line.
‘C-e’ will jump to the end of the headline, ignoring the presence
of tags in the headline. A second ‘C-e’ will then jump to the
true end of the line, after any tags. This also means that, when
this variable is non-nil, ‘C-e’ also will never jump beyond the
end of the heading of a folded section, i.e. not after the
ellipses.