emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Budiman Snowman <budimansnowman@gmail.com>
To: emacs-orgmode@gnu.org
Subject: agenda-view: match tags: Sorting by number of tags matched?
Date: Wed, 3 Jun 2020 17:39:04 +0700	[thread overview]
Message-ID: <CA+YqxJ7vDLunq2akSep7X=XVqnnL0PK2bW32M2jW453jcikWHQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]

Suppose I have this document:

* topic1                                               :tag1:tag2:tag3:
* topic2                                               :tag1:tag2:tag4:
* topic3                                               :tag1:tag3:tag4:
* topic4                                               :tag2:tag3:tag4:
* topic5                                               :tag1:tag2:
* topic6                                               :tag1:tag4:
* topic7                                               :tag3:tag4:
* topic8                                               :tag1:

And I turn on org-agenda m, then search for tag1|tag3|tag4. Emacs will then
show the results (all entries match) in the above order. Is there a way for
Emacs to show based on the number of tags matched ("sort based on
relevance"), e.g.:

* topic2                                               :tag1:tag2:tag4:
* topic1                                               :tag1:tag2:tag3:
* topic3                                               :tag1:tag3:tag4:
* topic4                                               :tag2:tag3:tag4:
* topic6                                               :tag1:tag4:
* topic5                                               :tag1:tag2:
* topic7                                               :tag3:tag4:
* topic8                                               :tag1:

Regards,
BS

[-- Attachment #2: Type: text/html, Size: 1985 bytes --]

             reply	other threads:[~2020-06-03 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 10:39 Budiman Snowman [this message]
2020-06-04  4:30 ` agenda-view: match tags: Sorting by number of tags matched? Kyle Meyer
2020-06-04 15:22   ` Budiman Snowman

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://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+YqxJ7vDLunq2akSep7X=XVqnnL0PK2bW32M2jW453jcikWHQ@mail.gmail.com' \
    --to=budimansnowman@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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://git.savannah.gnu.org/cgit/emacs/org-mode.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).