A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg00799.html below:

Re: feature/tree-sitter 908aab6144: Improve tree-sitter imenu for c-mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Yuan Fu 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
> 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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4