[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] The best way to choose an "action" at point: context-menu-mode
From: |
Ihor Radchenko |
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 09:59:59 +0000 |
Suhail Singh <suhailsingh247@gmail.com> writes:
>> For a given Emacs "prefix" command (e.g. org-open-at-point), we define a
>> set of customizations:
>>
>> 1. List of possible actions: ((name1 . action1 props) (name2 . action2 ...)
>> ...)
>> PROPS is a plist defining extra properties like key-binding, display
>> string, maybe something else to be used in the future.
>> 2. Menu interface to use (transient, context-menu, embark, which-key)
>> 3. Layout settings for the specific interfaces. For example, transient
>> layout definition.
>
> By "display string" do you mean a description of the action? Or would
> that be additional?
I mean some way to define how the action should be displayed in the
menu. It may be a full string or just a description to be appended to
the action name, or something else.
> Hopefully, the description of each action will be a first-class member
> of the "List of possible actions". Or is the intent that the
> description be taken from the form representing an action (e.g. a defun,
> a lambda etc).
Using a docstring sounds like a good idea. But it is a bit early to
decide these details. I'd like to discuss the more general design first.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
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>
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), (continued)
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), Ihor Radchenko, 2024/12/22
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), Eli Zaretskii, 2024/12/22
- Message not available
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), Eli Zaretskii, 2024/12/23
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), Ihor Radchenko, 2024/12/23
- Message not available
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), Ihor Radchenko, 2024/12/24
- Re: Alternative defaults for visually impaired users?, Björn Bidar, 2024/12/24
- Re: Alternative defaults for visually impaired users?, Ihor Radchenko, 2024/12/25
- Re: Alternative defaults for visually impaired users?, Eli Zaretskii, 2024/12/25
- Re: Alternative defaults for visually impaired users? (was: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)), John ff, 2024/12/29
Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Suhail Singh, 2024/12/14
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?,
Ihor Radchenko <=
Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, indieterminacy, 2024/12/14
Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Juri Linkov, 2024/12/14
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Ihor Radchenko, 2024/12/15
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Juri Linkov, 2024/12/16
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Ihor Radchenko, 2024/12/16
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Tor-björn Claesson, 2024/12/22
- Message not available
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Juri Linkov, 2024/12/24
- Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Tor-björn Claesson, 2024/12/24
Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?, Kierin Bell, 2024/12/15