alezost / bui.el

Buffer interface library for Emacs
GNU General Public License v3.0
114 stars 10 forks source link

Search functionality #1

Open dustinlacewell opened 5 years ago

dustinlacewell commented 5 years ago

Neat package. I'm thinking about building a https://www.gnu.org/software/recutils/manual/ front-end. However, I'm wondering if there is any search-filtering functionality? I saw the filter functions. Is there any hope there is real-time filter-while-you-type functionality similar to Helm? If not, is it a reasonable feature idea?

alezost commented 5 years ago

There is a way to add filters, but it is very simple, it does not allow on-the-fly "while-you-type" filtering.

I think it would be good to have this feature, but I don't plan to add it, sorry. Maybe someone else will do it one day.

alphapapa commented 5 years ago

If someone wanted to code this, Elfeed could probably serve as an example, as it has this feature.

vapniks commented 4 years ago

The most useful kind of filter would be one that prompted the user for a regexp and column to filter on when bui-enable-filter was run (similar to hide-lines). However I can't see how to do that with the current design. It would require a rewrite of bui-enable-filter (the column names are in bui-list-format). One way to achieve this would be to have bui-enable-filters check the number of arguments to each filter; if the filter takes more than one arg then the user is prompted for values of the other args, and then the predicate is curried with those values before being added to the list. This would not provide real-time filtering, but it would be an improvement on the current setup. I'm willing to make the changes if Alex agrees. What do you think @alezost ?

alezost commented 4 years ago

@vapniks, Yes, please do it!

Sorry for the delay, currently I am short in time, so I may not reply quickly :-)

vapniks commented 4 years ago

Done.