Re: [Patch] apps-menu

Jeremy Hankins <nowan nowan org> writes:

> Another way would be to be able to specify a predicate function to do
> the filtering.  The function would be passed a record and would return
> true or false to indicate whether or not to include it in the menu.  You
> could define a couple of standard functions (which would be able to be
> called from within user-provided functions) to do common things (e.g.,
> to do the sort of filtering that t or nil would do).  That way the
> apps-menu-display-all would be simple to use for novices (it could still
> take options like t and nil) but if its value is a function (or even a
> lisp form?) instead of t or nil that would be the predicate used.  If
> you wanted, you could even get a bit fancier, and allow the function to
> modify the record (i.e., the function would return the record, possibly
> modified, or nil indicating not to include it).  That way a power user
> could, e.g., rename certain entries or maybe even categories easily.
> Just an idea; I don't know how easy it would be to work this into your
> current system.

Yes, I like this idea, it can certainly be added into the system, I'll
see what I can do to get this working.  Thanks for the input!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]