]> git.notmuchmail.org Git - notmuch/commit
emacs: notmuch-tree-outline-mode
authorjao <jao@gnu.org>
Tue, 13 Dec 2022 02:15:42 +0000 (02:15 +0000)
committerDavid Bremner <david@tethera.net>
Mon, 20 Feb 2023 12:58:32 +0000 (08:58 -0400)
commitf63d14a8c12ad76024d2865c0223a06f6f4bb372
tree95c30a5aca87851264d240c4f1261288e8405c6d
parentdb4b48f6cc033255d0214c76bc72a05d61bff118
emacs: notmuch-tree-outline-mode

With this mode, one can fold trees in the notmuch-tree buffer as if
they were outlines, using all the commands provided by
outline-minor-mode.  We also define a couple of movement commands
that, optional, will ensure that only the thread around point is
unfolded.

The implementation is based on registering a :level property in the
messages p-list, that is then used by outline-minor-mode to to
recognise headers.

Amended by db: Copy docstring to manual and edit for presentation. Add
two tests. Fix typo "wether".
doc/notmuch-emacs.rst
emacs/notmuch-tree.el
test/T460-emacs-tree.sh
test/emacs-tree.expected-output/inbox-outline [new file with mode: 0644]