New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counsel-describe-prefix-bindings ? #332

Closed
josuah opened this Issue Dec 27, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@josuah

josuah commented Dec 27, 2015

I found this feature for ido: ido-describe-prefix-bindings.el.

Here is what it gives with ido-grid-mode.el (which may worth having a look by the way) after pressing C-x C-h:

This does not work with ido (not be comptible with emacs 24.5 or 25.1.50?), but I think this feature would be great for ivy.

Maybe this could also fit to hydra: complete next possible commands (those bound to keys in the hydra) with a completion system such as ivy.

Another possibility for hydra would be creating a hydra after any key (C-x) with C-h, with next possible commands as either commands to execute (C-x, C-u...) or hydras to call (r, n...).
r, n...).

Maybe I can talk about it to the author of which-key as well.

Again, I'm sharing my thoughts, and not making a request.

@josuah josuah changed the title from counsel-describe-prefix-bindings to counsel-describe-prefix-bindings ? Dec 27, 2015

@josuah

This comment has been minimized.

josuah commented Jan 12, 2016

I'm closing the issue, since @larkery made its version using completing-read (instead of ido-...), which uses to ivy when ivy-mode is activated.

So now I have got this while typing C-x C-h

2016-01-12-131524_1366x768_scrot

[EDIT] Typo in larkery name.

@josuah josuah closed this Jan 12, 2016

abo-abo added a commit that referenced this issue Jan 12, 2016

Add counsel-descbinds
* ivy.el (ivy-read-action): Update prompt for "C-M-a".

* counsel.el (counsel--find-symbol): Use ivy-window.
(counsel--descbinds-cands): New defun.
(counsel-descbinds-history): New defvar.
(counsel-descbinds-action-describe): New defun.
(counsel-descbinds-action-find): New defun.
(counsel-descbinds-action-info): New defun.
(counsel-descbinds): New command. Very similar to `counsel-M-x', except
that only bound commands are displayed.

Fixes #332
@abo-abo

This comment has been minimized.

Owner

abo-abo commented Jan 12, 2016

Have a look at counsel-descbinds.

@josuah

This comment has been minimized.

josuah commented Jan 12, 2016

Oh it is great, thank you! I will bind it to some key.

@dgutov

This comment has been minimized.

dgutov commented Jan 13, 2016

🎆

Helm goes bye-bye from my Emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment