From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gDR+Dut9117wIwAA0tVLHw (envelope-from ) for ; Wed, 03 Jun 2020 10:39:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UGNRCut91172ZQAAB5/wlQ (envelope-from ) for ; Wed, 03 Jun 2020 10:39:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DEEA39404CE for ; Wed, 3 Jun 2020 10:39:38 +0000 (UTC) Received: from localhost ([::1]:54808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgQo5-0002rZ-Rz for larch@yhetil.org; Wed, 03 Jun 2020 06:39:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgQnl-0002rJ-Lv for emacs-orgmode@gnu.org; Wed, 03 Jun 2020 06:39:17 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:33682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgQnk-0004w3-Oh for emacs-orgmode@gnu.org; Wed, 03 Jun 2020 06:39:17 -0400 Received: by mail-qk1-x731.google.com with SMTP id g28so1617144qkl.0 for ; Wed, 03 Jun 2020 03:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pyupQ5RDaOyWQhRNemwYKEa/KChqGS0kzK9PM/j/yMA=; b=k9Toyrkg7SKq4mgcnHfOKMyXCYgnZ7B1IXA7ZrJO8+x/DNEgJ2s8gJGjpob63JBPNa gyn4fpusKm8JLvHY+nZR1M4mMzmx8Ssvmrob0w8IwVsze9E33Thjle7ZjOa9I9p2DCeB lM0LOo4m2d/7giBNX04nVJEAJ4f2b6ck4RL4d5ps5hqBqI5s7esoASYDh7SeTFkjB0IR mH9LxCfyLqrrnKvb1/HTV3116pqvbnjV5rN5B8qLxCDtHqgXf4q5FlDjlqPvp0yprw32 GjNdGV+3x6uwEniIGGzJIhdPAjpiOWf4qf+7s2/mrzCD4TmctDwTTkpCqX9IDmfFagZ4 MPLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pyupQ5RDaOyWQhRNemwYKEa/KChqGS0kzK9PM/j/yMA=; b=g9oQzBMCqapUpJfXdPIZS6gieIMNs1IYB30yQLCfVChNZ517Cs7ZHEOzndt/IY+IFC WGbyy5czXZkAvaFXn3ZEa0FfL/AYJW98HIBmRN7y82LaK9dGfzXiml+2RfwcH76i1Zz2 9xqhgoc+x9CQTh9f2Dz+4sQ2lGBFYE0VHlPNQLUpCOdqBr0xv21jiWjslwaHsEBiOh8Q f3F1bD0KUBlbEfEXir2hktl0pGtLfeuRdzLJzyLkLsMTFVqbRWxFUqih3N/c+/PcGWXi rrTYVUbEmkSu3o76gLrV3/tyjYP0ZAhjjLun/aIaXH5oRyodHYs636rjn771sPRnPUxu XjFw== X-Gm-Message-State: AOAM533HfOCAKjhct6bVnfQO7nD9xu8izcgY0KjMDtoqgW6VtkPNVwzn r4iD2mvLUsRgLQ04mVC8Tob2zS0y5BWgxJuIulOJ1qE5Rbk= X-Google-Smtp-Source: ABdhPJzyXfqIo9325fo6Kht4sVtjj9iuLgF8Eh60k5JPZYIT2OsPRc8kNQ01ra277/90jWtTZt3VFL7FA797rairUjI= X-Received: by 2002:a37:6513:: with SMTP id z19mr30408218qkb.234.1591180755255; Wed, 03 Jun 2020 03:39:15 -0700 (PDT) MIME-Version: 1.0 From: Budiman Snowman Date: Wed, 3 Jun 2020 17:39:04 +0700 Message-ID: Subject: agenda-view: match tags: Sorting by number of tags matched? To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000b0c4e205a72ba3b0" Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=budimansnowman@gmail.com; helo=mail-qk1-x731.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=k9Toyrkg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: Dg//WRYZ5fZJ --000000000000b0c4e205a72ba3b0 Content-Type: text/plain; charset="UTF-8" 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 --000000000000b0c4e205a72ba3b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdj5TdXBwb3NlIEkgaGF2ZSB0aGlzIGRvY3VtZW50OjwvZGl2Pjxk aXY+PGJyPjwvZGl2PjxkaXY+KiB0b3BpYzEgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgOnRhZzE6dGFnMjp0YWczOjwv ZGl2PiogdG9waWMyIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIDp0YWcxOnRhZzI6dGFnNDo8YnI+KiB0b3BpYzMgwqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAg wqAgwqAgwqAgOnRhZzE6dGFnMzp0YWc0Ojxicj4qIHRvcGljNCDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCA6dGFnMjp0 YWczOnRhZzQ6PGJyPiogdG9waWM1IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMK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