From: Yuan Fu <casouri@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: Randy Taylor <dev@rjt.dev>, "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: feature/tree-sitter 908aab6144: Improve tree-sitter imenu for c-mode and js-mode
Date: Sat, 12 Nov 2022 22:51:58 -0800 [thread overview]
Message-ID: <81751DE8-3BCC-4D6E-8425-FB3F9CB2B06E@gmail.com> (raw)
In-Reply-To: <CADwFkmk_KR_3K6Yz59ZPPZvKt7F-G8FuFhDoU1to9q-BtpV3XQ@mail.gmail.com>
> On Nov 12, 2022, at 7:50 PM, Stefan Kangas <stefankangas@gmail.com> wrote:
>
> Randy Taylor <dev@rjt.dev> writes:
>
>>> Instead of a flat list, now categorize imenu entries into categories
>>> like "Function", "Variable", "Class", etc.
>>
>> Can this be made an option? I prefer a flat list.
>>
>> I don't know how it looked before, but something like:
>> Struct structName
>> Field/structName fieldA
>> Field/structName fieldB
>> Function func1
>> Function func2
>>
>> would be even better (that's what eglot shows on a golang buffer).
>
> Me too. Completing over a flat list tends to work much better with the
> completion framework I use (ivy).
I suspect you two are already using a categorized imenu list. The “Struct”, “Function” are actually category labels. I think nowadays every completion framework (ivy, consult) flattens the imenu list.
Yuan
prev parent reply other threads:[~2022-11-13 6:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-13 3:24 feature/tree-sitter 908aab6144: Improve tree-sitter imenu for c-mode and js-mode Randy Taylor
2022-11-13 3:50 ` Stefan Kangas
2022-11-13 6:51 ` Yuan Fu [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81751DE8-3BCC-4D6E-8425-FB3F9CB2B06E@gmail.com \
--to=casouri@gmail.com \
--cc=dev@rjt.dev \
--cc=emacs-devel@gnu.org \
--cc=stefankangas@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.