Discussion:
[PATCH] add live filter command (:live-filter)
Johannes Weißl
2011-02-22 21:12:48 UTC
Permalink
Hello!

finally a first (theoretically) mergeable version of :live-filter!
I pushed the patch to gitorious because it is quite huge and I couldn't
split it easily. Also it is easier to comment on the changes there:
http://gitorious.org/cmus/cmus/merge_requests/4

To try out:
git clone -b live-filter git://gitorious.org/~jmuc/cmus/jw-cmus-filter.git


Johannes
Gregory Petrosyan
2011-02-23 19:36:44 UTC
Permalink
Post by Johannes Weißl
Hello!
finally a first (theoretically) mergeable version of :live-filter!
I pushed the patch to gitorious because it is quite huge and I couldn't
http://gitorious.org/cmus/cmus/merge_requests/4
git clone -b live-filter git://gitorious.org/~jmuc/cmus/jw-cmus-filter.git
Works wonderfully for me, and code is great, too.

Everybody — please check it out, It is super-convenient and useful!

I've merged it into -pu branch.

Gregory
Jason Woofenden
2011-02-24 10:35:26 UTC
Permalink
Post by Johannes Weißl
git clone -b live-filter git://gitorious.org/~jmuc/cmus/jw-cmus-filter.git
This is awesome!

I use view 2.

I just dug through the mailing list archives to look up usage.
Here's what I found:

Type: ":li " then start typing, and watch as your view is filtered
to show only tracks that match your typing.

Is there a way to map a key (like l) to type ":li " for you and
then let you type the rest? If not, that would be awesome (feature
request.) I'd love that mutt habit to work in cmus.


Thank you Johannes!


Take care, - Jason
Johannes Weißl
2011-02-24 10:57:09 UTC
Permalink
Hello Jason,
Post by Jason Woofenden
This is awesome!
Great that you like it, it's been in preparation for quite some
time now :-)!
Post by Jason Woofenden
Type: ":li " then start typing, and watch as your view is filtered
to show only tracks that match your typing.
Is there a way to map a key (like l) to type ":li " for you and
then let you type the rest? If not, that would be awesome (feature
request.) I'd love that mutt habit to work in cmus.
The key 'L' is bound by default, but only for a fresh install of cmus.
For an existing installation use:
:bind -f common L push live-filter
(important: space at the end!).

I thought about adding the key binding by default if not set, but there
is no easy way in cmus (you don't want to re-add it all the time when
the user has decided to remove the 'L' binding). We just need to
advertise it when 2.4.0 is released...


Johannes

Loading...