From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yHLcH6gi7mIcLAEAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 10:13:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sLqnH6gi7mIFdQEAauVa8A (envelope-from ) for ; Sat, 06 Aug 2022 10:13:28 +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 18A4E3B7A for ; Sat, 6 Aug 2022 10:13:28 +0200 (CEST) Received: from localhost ([::1]:57842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKEw2-0002o5-M3 for larch@yhetil.org; Sat, 06 Aug 2022 04:13:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKEv0-0002nw-A3 for emacs-orgmode@gnu.org; Sat, 06 Aug 2022 04:12:22 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:33558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKEuy-0006ji-Ci for emacs-orgmode@gnu.org; Sat, 06 Aug 2022 04:12:22 -0400 Received: by mail-pl1-x635.google.com with SMTP id w10so4499396plq.0 for ; Sat, 06 Aug 2022 01:12:19 -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:content-transfer-encoding; bh=6rjsY9LeueE/xEOj4si3VrK8Yr8d2rXDxyOzIcAJUVk=; b=EdUglR7fJubUw2WZ2eM2ZLM7r1KudP069+jrjjQIyldLWUNwo0Eq4mWJ18n26AzoQL Vc+8+k78kO2rH72HKL6trwqsfkFDQV6tdMoUhKTsZRnNpc6QC/nY2CfCIF6kItsuAeC/ NluctI5vk9fVoRmmga/LgpxGBXwHD+1vn4N8TPk+YQAZfvIcxTqfNYRlqiQFdzphl+HA FkqCk+r/hM5WvKuGKKVQ8D3Jo6qqfxUIqQT1wVNuoEjOGF0Yy2YOl48tg1GmqX9MUaJD CFRHYhhX04N2hJg7Yl0aI2mMOmrTmyjRnIwUc1F7UgvODbQus0LGURdFTHPTytBulB5g gj3g== 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:content-transfer-encoding; bh=6rjsY9LeueE/xEOj4si3VrK8Yr8d2rXDxyOzIcAJUVk=; b=SKgNdTOq5CrWGE76jrr/ZEVaID0WGMGUPrj/ootpNm2PIqh+R8xpSOzctPn7SKk9a/ 1NT6KKvO1f64RVlU6mlFKShS37nva5KuRovin8WwJhRryiQ6NJeC7M8gBRFQCtxpIx/c ZzOcQuW+Qs+iu/Gzb0KbLKdcQrK/l0Aqxrqd5BD/SOPYVYcNn9QpUbIYVi2lTDlEPDsZ L2JvJniD03EtdSHPta07hLoxAoinyokU2qk2qlNwznV4mkuYHtSXRhehMU2OVl/+QJgr PlrekznbZSJkRJbzWmXYfrIEpinZQ2caJ9vnChjsLsaSZECc4LijgMFtBs+I/4NxGtXz GEtw== X-Gm-Message-State: ACgBeo0wHoXXGzgZsWhwLtSLA5UEQizL506XXz7xWFwACX7LaKOWbn+K qX8tPFR6bGW/aZxSKHeMAEk1b1KYKrk= X-Google-Smtp-Source: AA6agR6nlXMgQZ2S3xySI4xPQXqd2/IkbqOmqqb5z0GIIqdO1EIA15kD8eX543cPVNmlAxJXjW43Og== X-Received: by 2002:a17:90a:ba04:b0:1f2:1bf9:5d97 with SMTP id s4-20020a17090aba0400b001f21bf95d97mr11275746pjr.35.1659773538665; Sat, 06 Aug 2022 01:12:18 -0700 (PDT) Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id t17-20020a170902e1d100b0016d8b0dfd61sm4271002pla.178.2022.08.06.01.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 01:12:18 -0700 (PDT) From: Ihor Radchenko To: Hanno Cc: emacs-orgmode@gnu.org Subject: Re: Odd characters in the fast tags selection interface In-Reply-To: <7AB4F327-24D0-4BA5-BD20-B329D4CBBF0A@hoowl.se> References: <878ro3phee.fsf@localhost> <7AB4F327-24D0-4BA5-BD20-B329D4CBBF0A@hoowl.se> Date: Sat, 06 Aug 2022 16:13:22 +0800 Message-ID: <871qttn61p.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=yantar92@gmail.com; helo=mail-pl1-x635.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=1659773608; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6rjsY9LeueE/xEOj4si3VrK8Yr8d2rXDxyOzIcAJUVk=; b=Oc4NvjvpEeyEsmErDC3LsKkvR7udk/2+By/5kRQz0taB9dW4qEaJmAtNa6xZ08Oej9aOtT Kl+xu3P+UHZRP7+ZgfhT78sQQ6fcNky9+GnUC+ivLGU+xVtFhDX2oivZ6Or9FAcm+bQ2w6 wZOpyma1xYxr72sjCzgYZ2rnIp/STuV6TT3bCuqIXgkobwVfexw/jR3wEhPiy7CXBWiPIr h9Rm+48V1k1Cbk3FiHC3RabfheNYdOkeETSuCaj1sFnsdlbIaEWfZ4CldDDfcHjMtvh3oG umcb2BjQ53pykOQiCbHU8I68aEGMLgabkobX5yYvmaXMHRZAl9lbhBZiamAJIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659773608; a=rsa-sha256; cv=none; b=Sr2H1834wuYEMoOtkmzcg4Y4uSWiW1+L2GLiisy+v7QaY0Bc/R827q33KMUX0LQM3qFC0u KSi8PWMiWpnjuEmENV1ZZX6JgEg1AbmlVupwepC7qbmP8upNYtZyQfYEpzK91qDfOpaY6n tSKpnRYZv65wP1DjoPB20DecIQVllqLSK/8oFawi1dVmEETO1oeIwzPcIFq4t3DLnSUK8d hfOnx/9HVinJXtwlWph3ZLnCwIiu0Ga977Lusw7WqFHTnre4JKGphsmXFkngdfYGu5jXlO IV29lEv366tXXhtgg8BcNhdVvwjDXyWkZvua6Jx1FAGmtcQbTTdsrSYyTbieGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EdUglR7f; 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.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EdUglR7f; 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: 18A4E3B7A X-Spam-Score: -8.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: vMjXFY8F9xbN Hanno writes: >>> - after "a..z" runs out, '{', '|' and '}' are being used which seems >>> reasonable -- but after that, I get '\200' and similar before reaching >>> '=C2=A9'... >> >>This is indeed true, but what can we do? There are only that many >>characters in the keyboard. We may instead start using two-key >>combinations for tags beyond #26, similar to org-capture. Patches are >>welcome! > > Thanks for the fast reply and fully agreed! I would indeed argue that aut= omatically generated keys are not useful beyond a certain number (N=3D26?) = as they could change with new tags and thus are hard to memorize. And takin= g in >N random choices every time is hardly "fast select" anymore. > > In fact, the docstring for =3Dorg-fast-tag-selection=3D says that only a-= z would be automatically assigned. That sounds reasonable to me (otherwise = one can define more keys via =3Dorg-tag-persistent-alist=3D). Maybe this is= a bug after all? If more than 26 choices are desired, maybe A-Z (i.e. capi= tal letters) could extend the list before more unusual characters? > > What do you think? > > I am not at my computer right now but could try to come up with a patch l= ater. I am not sure. Omitting (random) part of the tags sounds awkward - some tags will be assigned keys and some not. I guess something that will improve the current situation would be simply not printing chars beyond a-z, while still listing all the tags - it will be less awkward compared to current situation when a key is printed but cannot be used anyway. Or we may provide "paging" approach that will re-assign a-z keys when user presses C-n/C-p. Though I do not like this idea too much because we have a more universal menu backend in works at https://orgmode.org/list/87zgisvuu5.fsf@localhost Adding new feature to tag menu does not feel like a good direction to go. If we decide to go this way at the end, we may, at least, also need to update org-fast-todo-selection along similar lines. 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. >>> - when defining my own keys, they are not displayed in the top; instead >>> their characters are missing in the 'a'..'z' range leaving more room >>> for odd and very difficult-to-type characters >>I think that it would make sense to have `org-tag-persistent-alist` >>staff being shown on top. Unless there are objections I can merge this >>trivial change. > > Thanks, that already improves the usability a lot! Done on main via a0b21e3f1. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Da0b21e3f1= c131bc6ee6398e2d3dda20944d6b358 --=20 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