abo-abo / swiper

Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
https://oremacs.com/swiper/
2.31k stars 338 forks source link

[Feature request] Using tabulated-list-mode for ivy-occur #2796

Open BooAA opened 3 years ago

BooAA commented 3 years ago

Recently I found a new package called embark which collect candidates and let you do action on them (almost the same as ivy-occur)

Some differences I notice are that embark use a major-mode derived from tabulated-list-mode, so it support display in multiple columns format (a perfect example where this is useful is to display both function name and docstring when you export completions from describe-function) . Also a neat feature is it can combine with tablist-mode (a minor mode to extend functionality of tabulated-list-mode), it can provide sorting and filtering feature inside emabark buffer (just like what you normally do in dired, ibuffer and list-packages).

I think maybe ivy can also borrow this idea and rely on using tabulated-list-mode to implement ivy-occur so that we can make fancy UI and do marking, sorting, filtering and other common actions you can find in package like ibuffer or dired.

basil-conto commented 3 years ago

ivy-occur, for all its issues, is meant to replace the built-in occur; see (info "(emacs) Other Repeating Search").

So if tabulated-list-mode were to be used, I'd suggest e.g. creating a new command, rather that changing how ivy-occur works.