minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.12k stars 98 forks source link

Intragration with package Breadcrumb #966

Closed nemethf closed 2 months ago

nemethf commented 2 months ago

I had a discussion with @sebastianpoeplau regarding a bug he reported against Eglot, which led me here. Although I do not use consult-imenu, it seems to me consult-imenu could take advantage of the text-properties provided by breadcrumb on top of the normal imenu interface.

class Foo {
  void bar() {}
};

Eglot/breadcrumb sets the imenu--index-alist for the file above to this:

((#("Foo" 0 3 (breadcrumb-region (1 . 31) breadcrumb-kind "Class"))
  (#("bar" 0 3 (breadcrumb-region (15 . 28) breadcrumb-kind "Method"))
   . 15)))

What do you think?