]> code.delx.au - gnu-emacs-elpa/commit
Add counsel-rhythmbox
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 9 Jul 2015 13:54:51 +0000 (15:54 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 9 Jul 2015 13:54:51 +0000 (15:54 +0200)
commit21007c2395105a14301c2f999549b533e2137e22
tree8705b34194d06cde280fb265da699cf3780cfc26
parent19dcc0ff119f5fc099829979ed36043b1b42eefc
Add counsel-rhythmbox

* counsel.el (counsel-completion-beg):
(counsel-completion-end): Move declarations before first use.
(dired-jump): Declare.
(counsel-rhythmbox-enqueue-song): New defun.
(counsel-rhythmbox): New command. Requires `helm-rhythmbox' package, and
Rhythmbox, obviously.

* ivy.el (ivy-call): Make interactive. Add special handling for the case
  when the collection is an alist. In that case, call the action not
  with the collection item, but with the cdr of said item. A bit weird,
  but that's the way Helm does it, and doing it in the same way means
  the action functions are cross-compatible.

* ivy-hydra.el (hydra-ivy): Bind "g" to call the current action on
  current candidate without exiting.

Now it's possible to make a query to Rhythmbox, "C-o" and navigate to a
song with "j" and "k". Try the song with "g".  Or use "s" once and then
enqueue different songs with e.g. "jjgjjjgjgkkg".
counsel.el
ivy-hydra.el
ivy.el