From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel Santos Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? Date: Sat, 14 Dec 2024 07:59:50 -0300 Message-ID: <8734iq8r89.fsf@disroot.org> References: <8734m28l9a.fsf@gmail.com> <87y120daue.fsf@localhost> <874j4m9ep6.fsf@gmail.com> <87h68gfqj1.fsf@localhost> <87pln3f3cc.fsf@localhost> <87jzd9ojj0.fsf@localhost> <87cyj0ajm9.fsf@gmail.com> <87zfm4s50x.fsf@localhost> <87wmh8s358.fsf@localhost> <87y11nwp9z.fsf@gmail.com> <87v7wd9a2h.fsf@localhost> <878qt7fbki.fsf@gmail.com> <87o71jwdxz.fsf@localhost> <87wmg6edr0.fsf@gmail.com> <87msgzh1dh.fsf@localhost> <87a5cz8cby.fsf@disroot.org> <87ed2afuyh.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, emacs-orgmode@gnu.org To: Ihor Radchenko Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sat Dec 14 12:01:46 2024 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMPu6-0002zL-Dv for geo-emacs-orgmode@m.gmane-mx.org; Sat, 14 Dec 2024 12:01:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMPsy-000847-Ri; Sat, 14 Dec 2024 06:00:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMPsS-0007YT-8x; Sat, 14 Dec 2024 06:00:07 -0500 Original-Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMPsP-0000rb-Jm; Sat, 14 Dec 2024 06:00:03 -0500 Original-Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2488324A97; Sat, 14 Dec 2024 11:59:59 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Sx9oBPd2jLdz; Sat, 14 Dec 2024 11:59:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1734173994; bh=dzuXrUvKGLmJ8gPpUz3uUoIdjquRy8zUj0KnfdOVYgw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=TmpYrSMO0DhL33LUSFi+b+5+TFZyyaTemhYCa4HOC2WgIsnBHB0gfE40DLXJKOxut /eXptVCJy8C8CZ6kUYvrXcFeJPvGXojEk5/9aHqNOVHTJ05neb7bS7WCHOfwSZdG3p LrKo+1Q/RvSFOj1aNtRWBO4BRTG92tQ98akFk2V+nvFtiQsleK72Sl/IPewu18Tpb1 YvB5tw+K3l5SHJp13VNX2ZXYqvkMH2ksjErNOrldOPWtCbOzQu4idj0BZru646WeaJ +Zph2KLBaj+idmXHIHk5L8Kj+BJ2wdp/ORWH+cxFIodcEneodAufXdyJjWCpKWhrHa JeSUN0OXS46MQ== In-Reply-To: <87ed2afuyh.fsf@localhost> (Ihor Radchenko's message of "Sat, 14 Dec 2024 09:57:26 +0000") Received-SPF: pass client-ip=178.21.23.139; envelope-from=gabrielsantosdesouza@disroot.org; helo=layka.disroot.org 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.orgmode:164138 gmane.emacs.devel:326477 Archived-At: --=-=-= Content-Type: text/plain Content-Disposition: inline >> The consideration for context-menu for me is particularly intriguing, as there's >> a lot of functionality already included in Org's context menu. > > This is not right. I think you are confusing ordinary menu bar and > context menu. Context menu is "right click" menu that will display > different items depending on where you click. Org mode currently does > not have context-menu-mode integration (we should fix this deficiency) Maybe it's some third-party package I'm using, but right-cliking on an Org buffer gives me a lot of options: >> I don't often use org-ctrl-c-ctrl-c, but now that I've seen the interaction >> menu for properties as an example, I'd say the best option for it would be >> which-key, as it's a simpler menu. > > My conclusion so far is that there is no "best" for every user. We > should ideally support user-customized menu UI. The main question is how > to do it. I also agree with this conclusion. Hope others can contribute with suggestions of how to go about it. >>> This UI flow can be implemented using context menus, which-key popups, >>> transient menus, and also using embark (where the way menu is displayed >>> can be customized). >>> >>> All the 4 approaches represent different UI models with various >>> strengths and weaknesses: >> ... >> It has options for setting the pop-up type and position. Could this help with >> flexibility? > > May you elaborate what "it" refers to? Sorry, seems I forgot to clarify. "It" in this context was referring to which-key. It has the following variables for altering (window) display: - which-key-popup-type - which-key-side-window-location --=-=-=--