emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Jan Rehders <jan@sheijk.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Contributing org-menu (using transient) to Orgmode?
Date: Mon, 25 Nov 2024 17:13:47 +0000	[thread overview]
Message-ID: <87o723s0c4.fsf@localhost> (raw)
In-Reply-To: <84EE7FC0-B04F-4413-9930-67C7BCF3B9F6@sheijk.net>

Jan Rehders <jan@sheijk.net> writes:

>> More generally, we have previously discussed the idea of generic help
>> menu for major modes. See https://list.orgmode.org/orgmode/87a5oayblv.fsf@gmail.com/
>> I personally like the idea of some kind of help menu, but I have doubts
>> that transient is best-suited for the task. Ideally, help menus should
>> help with the existing key bindings rather than introducing brand
>> new. AFAIK, transient _always_ introduces new bindings.
>
> I think which-key has been added to Emacs, that one seems like a good fit

which-key only provides key binding + symbol. No description and no grouping.

>> org-speed-commands
>
> org-menu works on many more elements than headings. Table cells, list items, dates, normal text formatting, etc. See the transient-insert-suffix 'org-menu at the end of the file following :if blocks for conditional enabling commands for various elements. This is as ad-hoc as Orgmodes keybinding overloads depending on context (which might also be a good thing to generalise it, like some commercial text editors did/do)

org-speed-commands can work outside headings as well. See
`org-use-speed-commands'.

>> I imagine splitting it into several files which follow Org’s
>> existing structure might make sense as well as making it easier to
>> add new parts to it. I don’t know how to best do that, yet.

I do believe that the best way to integrate menus like in your package
is extending org-speed-commands functionality. For example, we can
introduce something like `org-speed-commands-toggle' that will toggle
the transient menu. Does it make sense?

-- 
Ihor Radchenko // yantar92,
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>


  reply	other threads:[~2024-11-25 17:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-17 13:33 Contributing org-menu (using transient) to Orgmode? Jan Rehders
2024-11-23 16:56 ` Ihor Radchenko
2024-11-24 16:28   ` Jan Rehders
2024-11-25 17:13     ` Ihor Radchenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-18  8:40 Dilip via General discussions about Org-mode.
2024-11-18  8:45 Dilip via General discussions about Org-mode.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o723s0c4.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=jan@sheijk.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).