From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KIZ/MYEO8WJpIAAAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 15:24:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iCN4MYEO8WKqTAAA9RJhRA (envelope-from ) for ; Mon, 08 Aug 2022 15:24:17 +0200 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 5BF0F2E141 for ; Mon, 8 Aug 2022 15:24:17 +0200 (CEST) Received: from localhost ([::1]:36954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL2jw-0000zd-01 for larch@yhetil.org; Mon, 08 Aug 2022 09:24:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL2iw-0000zT-Mf for emacs-orgmode@gnu.org; Mon, 08 Aug 2022 09:23:14 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:56228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL2iu-0006fS-S8 for emacs-orgmode@gnu.org; Mon, 08 Aug 2022 09:23:14 -0400 Received: by mail-pj1-x1035.google.com with SMTP id a8so8752369pjg.5 for ; Mon, 08 Aug 2022 06:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=6a0ZIF8JP4A/8xCgAqfDirYR+Ep169hC1Ro0PpzdnHY=; b=LXIS8Xmsm2j6Qjm5vWftUPFO40R6Ryie2gN9o15B+6pf8qHPCtTOFPlhRiptNhXsf+ rg+AL23/9+rAobNwaZ8JrffihEaPF0gDJwulxVyBG1xb/0exOOBfANg1jqevwmPvXqGf hmTl4ofpo87Bk8MfPHa7BmO0OFgEpaH7P7zRtoaQtCQZo7Ed2ezR3yLE5qEinoy6x0Cz UbxtzulOVxZSS1i7uOe0dX7yYC/e3dxVx8bz79+qlinDlN7idP955NUr/qWxzRasgOc9 39tk/qg3GbrVl781GH6rOpvMc1OBOyWYEVI/k+R30w+HAOaJ+KnWhUuzMrDIyeGVyjna /Kxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=6a0ZIF8JP4A/8xCgAqfDirYR+Ep169hC1Ro0PpzdnHY=; b=ZYp3EflnFFhwguuK15ZbjsjTIAzyhJdTqu8RkE67lbfkHGYw3YBKWbZn1uxbchVEtM Ile1DZluG5UmXKm6pNKxHGfEBYkoyzXKY/dORMRJeQQ1oEZKwTUYL6VOcFpz8+uMzuDm FMrJNnlFk9DsE4yUEgnHIJwu5nnOZVVGImb/8CFWcg0KPJjc9nMC+y7aih+ESm6WvCTN O5youjZ1KgVM76y11/fMuYtZy9fktK/pF2QC2Yz5kfZSCyzpXaJhMI9ZqTGTCoeY1+Yg O1gQul8/0kWm9x9v4H+LWEA/yFBvDj+jdRH025aC3sDt5N4UmtFQAXFYWTQab6/NBYO+ hBKw== X-Gm-Message-State: ACgBeo3RK8gX0a91PuGNguckNSNwBNfquT5qBJZ6g6OMhVsdezEgscNi xdeWs1x/Xz2fhLTShm5DdDgywKAQDx8= X-Google-Smtp-Source: AA6agR4epn13NSE3RcVqry74w+uSr6Fe/vPshc+1uRlwGDIdrk6pFyp/7AfN23ox2uVbJmwx65kpEA== X-Received: by 2002:a17:902:e88a:b0:16f:281:3f59 with SMTP id w10-20020a170902e88a00b0016f02813f59mr18717387plg.0.1659964991365; Mon, 08 Aug 2022 06:23:11 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id n2-20020a170902e54200b0016a058b7547sm7710669plf.294.2022.08.08.06.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 06:23:10 -0700 (PDT) From: Ihor Radchenko To: Hanno Perrey Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org.el: Improve automatic fast tag selection keys (was: Odd characters in the fast tags selection interface) In-Reply-To: <87a68g7wnb.fsf@hoowl.se> References: <878ro3phee.fsf@localhost> <7AB4F327-24D0-4BA5-BD20-B329D4CBBF0A@hoowl.se> <871qttn61p.fsf@localhost> <87a68g7wnb.fsf@hoowl.se> Date: Mon, 08 Aug 2022 21:24:12 +0800 Message-ID: <877d3izx4z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659965057; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6a0ZIF8JP4A/8xCgAqfDirYR+Ep169hC1Ro0PpzdnHY=; b=YPQXAOGKqJTxoVoRiHp+y9eM3iEE5DlyEuB5fbE4aAFlgiYg9C2mB27B9t6CMDnlsdgNGL I5BX3oCuyfIQxs37rN1eliSVdHH9d0dvOXemIy90DAz4kt5sWOKW5Xgenv01JLTcSkD3Yr jSJBTq5jDJ4VKciLaay1UG7X4eooAXp1oLJSecluWPXsIPaKvXWd1TebesIzutCwzbhsEP wmjCs7vg5zZycASgjnNwAVNl7kmr1SR7aFmPrsA/waaoKyB0IHnG+6VjkJKLk2VOGtFYTw H5k2rL/JqArNrwZ4rPnr6OyN+mstuOmL85sczbckVik3DwAt6iMuac4jujuuQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659965057; a=rsa-sha256; cv=none; b=ExodMFVja+50nLRMAT3Hb1Mo7hudgboCYlz9mykdZowWTx1FEhDX5dp03QgRpyVk9GqErH JGisS19zxMvP+oA4vwLyXmWdlasfsF1vGzzF3daGkSBTS1HOXjN6o81QtkBSt8GjT03TdB F4g9xKcXH+jiecj8HbpgXdRP//EDWkv6ZEUiSe8zzqkElFKdvMNDwqYS5j8jViyd0oAjNM 6NUTc5+nq8PHW3LN0zyxUTBV3BVTe7xTVE1tPjOosni/IkdOhHtzdlor0TmgWF2kPZYwHy iopC17HIy8YSNi1ZlE5lFAwdsnlzVDhDyfN1n80t5m9jAzAYC5eKffkBmN6Usg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LXIS8Xms; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.89 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LXIS8Xms; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5BF0F2E141 X-Spam-Score: -8.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0RSFPBP74OuA Hanno Perrey writes: > Good point. I attach a patch that does just that. After the '~' > character, only "space" is assigned -- which feels like a hack, but > means that the selection key field is empty and that the fields are > still aligned nicely. Actually selection any of these items is not > possible as space is assigned to clearing the tags. Should this break > anything that I have missed in my (brief) tests, please let me know! > > Additionally, the range A-Z is used once 'z' is reached before assigning > non-alphabetic (but reasonably-reachable) characters. In case that > description is difficult to follow, I attach a screenshot of the > modified code in action. Thanks! Applied onto main via 4db67da68 with minor amendments like adding double space between sentences and capitalizing first word in sentences. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4db67da68db820184bd9d4208c4f8bd7370ee9de > Please note that I have not (yet) assigned copyright to the FSF. > However, I believe that these changes are still trivial enough to > qualify as TINYCHANGE. You are good to go until 15LOC total contribution combined. >> Finally, we may simply not list tags with keys beyond "z" at all only >> indicating that there are more by showing some text at the end of the >> menu. > > That might be an alternative, as I think not even all tags are shown > now. Let me know should you rather go down that route instead. We may, but then we need support from other users. Hiding staff will be a breaking change, unlike the patch you propose, which barely improves visuals. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92