]> code.delx.au - gnu-emacs-elpa/commit
ivy.el (ivy-dispatching-done): New command on "M-o"
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 22 Jul 2015 10:10:13 +0000 (12:10 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 23 Jul 2015 11:37:20 +0000 (13:37 +0200)
commit5480079653d6c7ec59af5e7d79b2eda5bfe1c190
tree0e584b9adc92f0215e0cb9c267afe7971ba1adf8
parentadad288b69785a02e7207bfc00390f6ddb0429a8
ivy.el (ivy-dispatching-done): New command on "M-o"

* ivy.el (ivy-minibuffer-map): Bind "M-o" to `ivy-dispatching-done'.
(ivy-action-name): Update, all actions are now in hydra's format - key
binding, command, hint.
(ivy-read): The default action is bound to "o" in the dispatch.
(ivy-switch-buffer): Update to new action format.

* counsel.el (counsel-locate):
(counsel-rhythmbox): Update to new action format.

The new interface allows to do whatever you want with the selected
candidate with a very short key binding.

The old interface with "C-o w/s" still works, but:

- it gives a lot more info than necessary for only selecting action
- doesn't scale well with the number of actions: for 10 actions you
  would cycle "w/s" a lot.

Example with `ivy-switch-buffer':

- switch to selected buffer: "C-m"
- kill selected buffer: "M-o k"; you get a hint right after "M-o".

When there is only one action, "M-o" will forward to "C-m".
counsel.el
ivy.el