From: Morgan Smith <morgan.j.smith@outlook.com>
To: Samuel Wales <samologist@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: imenu vs. refile goto (was Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines)
Date: Fri, 14 Jun 2024 07:35:52 -0400 [thread overview]
Message-ID: <CH3PR84MB3424A9EF67AD25465107BE1BC5C22@CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAJcAo8sf5P-Rfuoeahx67zo6wuHA5dspN-Mdbi5Xr-=ZrEzLXg@mail.gmail.com> (Samuel Wales's message of "Thu, 13 Jun 2024 23:10:48 -0700")
Samuel Wales <samologist@gmail.com> writes:
> how does imenu compare against completion systems like ido combined with org
> refile set to goto? when would you use imenu vs. other completion?
For my specific use case, all I want is a simple minibuffer completion
that offers me all the headings in the current buffer and allows me to
jump to the one I select. Something which sounds easy, but in practice
I haven't found a good solution yet.
I assume you are suggesting `C-u M-x org-refile'. This is a solution I
haven't seen before. Being the refile command doesn't make it an
intuitive solution and I wonder if users would be able to find this
easily (I wasn't able to).
In order to get completion for subheadings I had to add this to my
configuration file:
`(setopt org-refile-targets '((nil . (:maxlevel . 5))))'
I'm actually quite pleased with this interface and it is really nice.
It is exactly what I'm trying to get from imenu.
My only gripe is that it is org specific whereas imenu isn't. If I get
imenu working the way I like, then I'll benefit in other modes as well.
next prev parent reply other threads:[~2024-06-14 11:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-14 6:10 imenu vs. refile goto (was Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines) Samuel Wales
2024-06-14 11:35 ` Morgan Smith [this message]
2024-06-15 7:22 ` Samuel Wales
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=CH3PR84MB3424A9EF67AD25465107BE1BC5C22@CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM \
--to=morgan.j.smith@outlook.com \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@gmail.com \
/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).