From: Alexander Adolf <alexander.adolf@condition-alpha.com>
To: Roger Randall <roger@rogerrandall.com>,
Jose Antonio Ortega Ruiz <jao@gnu.org>,
David Bremner <david@tethera.net>,
notmuch@notmuchmail.org
Subject: Re: configurable summary line for notmuch search
Date: Wed, 01 Sep 2021 18:25:41 +0200 [thread overview]
Message-ID: <ff4b243bc7ba3a59fac3b57e44c90c5d@condition-alpha.com> (raw)
In-Reply-To: <874kb9cc2u.fsf@enerconpex.com>
Roger Randall <roger@rogerrandall.com> writes:
> [...]
> Along those lines, I would also like the ability to
> explicitly set the order in which tags are shown in notmuch-search (as
> opposed to purely alphabetical).
> [...]
I have to admit having been intrigued by this thought, too. How could
this work? I guess one could want specific tags to always be at the
start, or the end of the tags string, and perhaps in a specific order.
Implementation-wise this could be done with weights, or priorities. Each
tag gets a default weight/priority, say zero. I would then like to be
able to set up regular expressions to assign different
weights/priorities to tags matching these regexps. Tags would then be
displayed in ascending weight/priority order (i.e. negative
weights/priorities first, then zero, then positive weights/priorities).
Within the same weight/priority value, alphabetic ordering would be
used.
What if a tag matches more than one regexp? Are the weights/priorities
added up, or does the minimum weight/priority "win"?
For me, this would be interesting for Emacs only, i.e. likely best
implemented in elisp.
That said, this could - more or less - easily be done with the patch
proposed on this thread by jao. <hint>_Provided_ that it will be amended
to not only cover notmuch-tree-result-format, but also
notmuch-search-result-format.</hint> ;-)
Cheers,
--alex
next prev parent reply other threads:[~2021-09-01 16:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-28 15:10 configurable summary line for notmuch search David Bremner
2021-08-28 21:30 ` Jose Antonio Ortega Ruiz
2021-08-29 0:46 ` Roger Randall
2021-09-01 16:25 ` Alexander Adolf [this message]
2021-09-01 18:52 ` Jose Antonio Ortega Ruiz
2021-08-29 14:53 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff4b243bc7ba3a59fac3b57e44c90c5d@condition-alpha.com \
--to=alexander.adolf@condition-alpha.com \
--cc=david@tethera.net \
--cc=jao@gnu.org \
--cc=notmuch@notmuchmail.org \
--cc=roger@rogerrandall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).