alphapapa / org-bookmark-heading

Emacs bookmark support for Org-mode
GNU General Public License v3.0
93 stars 8 forks source link

Optional feature: End-of-buffer bookmark #23

Open jmay opened 1 year ago

jmay commented 1 year ago

Disabled by default.

To enable, (setq org-bookmark-heading-match-eob t)

When enabled, saving a bookmark when cursor is at the end of the buffer (must be the very end, extra whitespace counts) with record an "eob" marker so that jumping to that bookmark will always jump to the end of the file. This overrides the regular behavior where it would jump to the beginning of that subheading.

alphapapa commented 11 months ago

Thanks for your patience!

After thinking about this, I think the best way to handle it might be to recognize when point is at end-of-buffer, and prompt the user whether to bookmark EOB or the heading. Then this could be documented, and it wouldn't need a new option to be defined.

What do you think? Thanks.

jmay commented 8 months ago

redoing this one for latest master

alphapapa commented 8 months ago

@jmay Please don't close this PR and make a new one. Just rebase it and force-push to this PR's branch.