Julian Orth
2012-11-07 21:59:45 UTC
I have added a new option "auto_expand_albums" to my show-all-tracks branch.
If enabled, searching for tracks does not automatically expand the album list.
To do this, I had to rewrite show-all-tracks and was able to remove
the changes in rbtree.h.
In the current version, I simply set a variable in tree.c that says if
an album or an artist is selected.
I didn't do this before because I don't know if this is "stable" in
the sense that the method win->get_next only gets called when the
content of lib_track_win is determined by the selection in
lib_tree_win.
Furthermore, I discovered and fixed two bugs (in my implementation).
When a track is removed or added, lib_track_win doesn't get updated.
In the first case, this can result in crashs.
You can find it here:
http://gitorious.org/~juorth/cmus/juorths-cmus2/commits/show-all-songs
If enabled, searching for tracks does not automatically expand the album list.
To do this, I had to rewrite show-all-tracks and was able to remove
the changes in rbtree.h.
In the current version, I simply set a variable in tree.c that says if
an album or an artist is selected.
I didn't do this before because I don't know if this is "stable" in
the sense that the method win->get_next only gets called when the
content of lib_track_win is determined by the selection in
lib_tree_win.
Furthermore, I discovered and fixed two bugs (in my implementation).
When a track is removed or added, lib_track_win doesn't get updated.
In the first case, this can result in crashs.
You can find it here:
http://gitorious.org/~juorth/cmus/juorths-cmus2/commits/show-all-songs