notmuch/devel
Mohsin Kaleem cd89065dc3 emacs: Add new option notmuch-search-hide-excluded
The new notmuch-search-hide-excluded option allows users to configure whether
to show or hide excluded messages (as determined by search.exclude_tags
in the local notmuch config file). It defaults to true for now to maintain
backwards-compatibility with how notmuch-{search,tree} already worked.

New commands notmuch-search-toggle-hide-excluded and
notmuch-tree-toggle-exclude have also been added. They toggle the value
of notmuch-search-hide-excluded for the search in the current search or
tree buffer. It's bound to "i" in the respective keymaps for these
modes.

Lastly I've amended some calls to notmuch-tree and notmuch-unthreaded
which didn't pass through the buffer local value of
notmuch-search-oldest-first (and now notmuch-search-exclude).
Examples of where I've done this include:
  + notmuch-jump-search
  + notmuch-tree-from-search-current-query
  + notmuch-unthreaded-from-search-current-query
  + notmuch-tree-from-search-thread

A new test file for Emacs has been added which covers the usage of the
new `notmuch-search-hide-excluded' option and interactively hiding or
showing mail with excluded tags. These test cover the basic usage of
the `notmuch-search-toggle-hide-excluded' command in notmuch-search,
notmuch-tree and notmuch-unthreaded searches. These tests also cover
the persistence of the current value of the hide-excluded mail option
as a user switches from between these different search commands.

[1]: id:87ilxlxsng.fsf@kisara.moe

Amended-by: db, fix indentation in T461-emacs-search-exclude.sh
2024-04-06 15:03:45 -03:00
..
nmbug nmbug: promote to user tool "notmuch-git" 2022-06-17 08:40:19 -03:00
notmuch-web devel/nmweb: read mail files in binary mode. 2023-09-18 06:13:25 -03:00
author-scan.sh Fix author-scan.sh on BSD systems. 2021-08-03 20:26:36 -03:00
check-notmuch-commit devel: script for checking a commit (series) 2021-10-10 20:55:09 -03:00
check-out-of-tree-build.sh devel/check-out-of-tree-build.sh: consistent naming, consistent quoting 2017-10-05 07:40:36 -03:00
emacs-keybindings.org emacs: Add new option notmuch-search-hide-excluded 2024-04-06 15:03:45 -03:00
man-to-mdwn.pl devel/man-to-mdwn.pl: portable locale environment variable setting 2016-06-11 13:01:30 -03:00
news2wiki.pl devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as release date 2014-07-13 12:35:37 -03:00
release-checks.sh removed use of 'echo -n' (and echo -n -e ...) 2022-02-21 09:36:39 -04:00
RELEASING Start devel directory for developer tools and documentation. 2012-01-17 22:53:31 -04:00
schemata schemata: document 'excluded' field in structured output 2023-07-09 12:26:56 -03:00
STYLE STYLE: document rules for calls, block comments, ternary ops 2019-06-14 07:41:27 -03:00
TODO lib: make notmuch_query_count_messages explicitely exact 2015-03-13 07:58:55 +01:00
try-emacs-mua try-emacs-mua: Trim `require' advice for Emacs 25 2020-08-09 21:17:50 -03:00
uncrustify.cfg devel/uncrustify: add line length limits. 2021-03-12 07:15:41 -04:00