From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 gJbMIWMR8WLVBAAAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 15:36:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GMXUIGMR8WKGcQEAG6o9tA (envelope-from ) for ; Mon, 08 Aug 2022 15:36:35 +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 260292E86C for ; Mon, 8 Aug 2022 15:36:35 +0200 (CEST) Received: from localhost ([::1]:44412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL2vp-0006kf-Bz for larch@yhetil.org; Mon, 08 Aug 2022 09:36:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL2vH-0006kG-CW for emacs-orgmode@gnu.org; Mon, 08 Aug 2022 09:35:59 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:35829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL2vE-0008SZ-Hi for emacs-orgmode@gnu.org; Mon, 08 Aug 2022 09:35:58 -0400 Received: by mail-pl1-x629.google.com with SMTP id y1so2960924plb.2 for ; Mon, 08 Aug 2022 06:35:56 -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=axFMaAbX6k8Nw3Z8kp6kQ7hlDP8ICkUaSznWWKpLrDM=; b=MBk0RSa/31/t+48Ot6IBi/iN4fF9wPc+TaGeT16TuSD0ulQhb93uiHpxNIpPGS/LgV Pw91vobrpIZD2EzkGHuK3cuqzoxPUoZyKmtp7harHwEsior6osEWjU7w66va4jbU69hg Ab+zVpBTZ9yzW7eaYGOF2zxNB/VISyu28ZDJ7C7stPz0FOwAVTB7DfJ5pt1AzJUEe5Ol jtNJ3D9NEaqs8N9CVeWUAZx35CJYTdY4mHpfoJ9LVfsR1+pds9ytnK8+aoDjfaaNMJFZ wY5B3Npr5hpyWp+70yE5wYSrrhgTjD47+frzLP65Rx5D/8V0Xusq4zPqnAY/CpEZBnUa imVQ== 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=axFMaAbX6k8Nw3Z8kp6kQ7hlDP8ICkUaSznWWKpLrDM=; b=vPgZRxsZV5JU7kxLlxp1pNKoctavnXUazWJz+BXciXd2iPTXbc5nl05kTDhfh7b2UG F3LrG0jr84pb/jxqKGzh3X5TRPEdzBbb6dVQlLmxf0SMg+ysUW18VPU1tcUETPLeY6+1 tQOg7eH1O+NEpWsxSjtHCIxWoUSwVn7NM1HiJVggwCd0JGw+aRbf5zx3eSkws++hd+Zb FxwDUVhg1I6DqZg8yPKmb4v7tRJZ/4NFwiJdXh0/JiMEBCtqjY4V+uGAsomc5Wkox9We XfqNvQH+CVtq/geb0kw2VfogVMhXx1bL0GquQVhDhsGgRR1QCZ/Ka3rR6Nd2tEFE/x1x V2/w== X-Gm-Message-State: ACgBeo322RAYYVT1VQOQEkvOlhPwKqTGc23AGIPg2GODtlQsyahmlzdt 8wvCSKxHYWTbDIzjEAU8q8Q= X-Google-Smtp-Source: AA6agR5lWh1J5VvN0VP6zY/RT5CtRlHDb8ooVnBU8PzOuvODZD0c1oXHdOborZNicjfy5GmlMxAUIQ== X-Received: by 2002:a17:90a:150:b0:1f3:1dc7:c9f0 with SMTP id z16-20020a17090a015000b001f31dc7c9f0mr20836165pje.237.1659965755192; Mon, 08 Aug 2022 06:35:55 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id b2-20020a170902d50200b0016b90620910sm8916448plg.71.2022.08.08.06.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 06:35:54 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com Cc: Hanno Perrey , emacs-orgmode@gnu.org Subject: [PATCH] org-fast-tag-selection: Make group tags separator not break alignment In-Reply-To: <62f04f7c.d40a0220.9da67.0a2cSMTPIN_ADDED_BROKEN@mx.google.com> References: <878ro3phee.fsf@localhost> <7AB4F327-24D0-4BA5-BD20-B329D4CBBF0A@hoowl.se> <871qttn61p.fsf@localhost> <87a68g7wnb.fsf@hoowl.se> <62f04f7c.d40a0220.9da67.0a2cSMTPIN_ADDED_BROKEN@mx.google.com> Date: Mon, 08 Aug 2022 21:36:56 +0800 Message-ID: <87zggeyhzb.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=yantar92@gmail.com; helo=mail-pl1-x629.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=1659965795; 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=axFMaAbX6k8Nw3Z8kp6kQ7hlDP8ICkUaSznWWKpLrDM=; b=hGIPEsQM1MVRlvlKHzE8pTKUM66Ji+5QGq6/541bc4MB8hCvvsd5z3VaLMeQPZPrDVgJF4 q5Hbxp3AQvud+K+MC9NDpdTSl/IldbdxsUCnsnw/7vhNTov8Jn50qr+Z64TmghtQ4Unuzc dmVxE9vOIurLHwTc+MqBsyEX+sVPH7jnxWPglE3En7saIMEcAbQSUWEVDkw8tbQoM9IktT +ptibB6vRhw/fmkOsDTlHRW7au8e/j0IBHrU55r7dA0UtFMjgPGgOGkmaVLFuD800H4qCv zSaBVYn7hYwW9pZZkGsHGoxNp+Vk4tnoyX6ra463n0qHuT5lVKyd7iuEDoJbdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659965795; a=rsa-sha256; cv=none; b=WHxMS3C/i2QFEhdalbL/opHpQ4qTiAqmUvU/QhA4gPpYkDlOjn1elxlyeeGSlsIYZGmm8j fh6anwhqjuOSAhmNQhnKTOttTruBnpuxDltK4WSRPtsirJDy6gQlEFWVIyXrZr6lTvlnE9 ZMLwoJaQ5hceR8PwkUfR2OqLhIr6cNQPc6YW5Pk4jhe5Pj7yFdQ1rW0kcv4uR5CtRMWHGn yYwyJovo9t90JoR8OrS/qw8FNYDc1wUUlNjoQ4oM/CZM+jBg3/Lq9l4Fa3l/Fuwdi7OCDE wppwx6w5zOdInmmwdtjO5KVwy0qDSG9P3YivLGtQVgwomH811yWGuZony4UtBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="MBk0RSa/"; 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="MBk0RSa/"; 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: 260292E86C X-Spam-Score: -8.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: +B3crRxDousE --=-=-= Content-Type: text/plain "Christopher M. Miles" writes: > I agree to improve the tag selection UI. The hard-to-type characters is > not necessary. It's hard to type, and not match the purpose of "fast tag > selection", and will break tags alignment. > > Also need minor improvement on alignment of tags "group tag". > > Please see my screenshot attachment. This should be easy. See the attached patch. Note that the patch does not consider a case of narrow screen, but it is not like the menu is designed with such considerations, so I do not see much point trying hard to cover the edge cases. -- 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-fast-tag-selection-Make-group-tags-separator-not.patch >From 1cd18001f982092534664bc257b470fd9855b839 Mon Sep 17 00:00:00 2001 Message-Id: <1cd18001f982092534664bc257b470fd9855b839.1659965569.git.yantar92@gmail.com> From: Ihor Radchenko Date: Mon, 8 Aug 2022 21:30:04 +0800 Subject: [PATCH] org-fast-tag-selection: Make group tags separator not break alignment * lisp/org.el (org-fast-tag-selection): Start " : " group tags separator before tag column in the menu. Reported in https://orgmode.org/list/62f04f7c.d40a0220.9da67.0a2cSMTPIN_ADDED_BROKEN@mx.google.com --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 3b1caecf1..f7625dac7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11749,7 +11749,9 @@ (defun org-fast-tag-selection (current inherited table &optional todo-table) (while (equal (car tbl) '(:newline)) (insert "\n") (setq tbl (cdr tbl))))) - ((equal e '(:grouptags)) (insert " : ")) + ((equal e '(:grouptags)) + (delete-backward-char 3) + (insert " : ")) (t (setq tg (copy-sequence (car e)) c2 nil) (if (cdr e) -- 2.35.1 --=-=-=--