Re: [PATCH] Add new option 'org-imenu-flatten'

2024-05-11 Thread Ihor Radchenko
Ihor Radchenko writes: > Morgan Smith writes: > >> * lisp/org/org-compat.el: Add definition of 'org-imenu-flatten'. >> (org-imenu-get-tree): Use 'org-imenu-flatten'. >> --- >> >> Hello! >> >> I've been using this patch for a bit and I quite like it. One would think >> there would be an option i

Re: [PATCH] Add new option 'org-imenu-flatten'

2023-12-08 Thread William Denton
On 8 December 2023, Morgan Smith wrote: Have you considered adding a "flatten" option to imenu itself? That way, you could automatically get the functionality for free everywhere, not just in Org mode. I have considered that but gave up with minimal investigation because it seemed harder then

Re: [PATCH] Add new option 'org-imenu-flatten'

2023-12-08 Thread Morgan Smith
Ihor Radchenko writes: > > Have you considered adding a "flatten" option to imenu itself? > That way, you could automatically get the functionality for free > everywhere, not just in Org mode. I have considered that but gave up with minimal investigation because it seemed harder then this soluti

Re: [PATCH] Add new option 'org-imenu-flatten'

2023-12-08 Thread Ihor Radchenko
Morgan Smith writes: > * lisp/org/org-compat.el: Add definition of 'org-imenu-flatten'. > (org-imenu-get-tree): Use 'org-imenu-flatten'. > --- > > Hello! > > I've been using this patch for a bit and I quite like it. One would think > there would be an option in imenu itself to flatten trees but