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

immediately show results, or only after TAB #1259

Closed
Pitometsu opened this Issue Oct 29, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@Pitometsu

Pitometsu commented Oct 29, 2017

When I run customize-face, there are no swiper options, until I press TAB.
On other hand, when I run swiper, I see a lot of results with no input or TAB keystroke.

How can I switch this behavior: show results for customize-face immediately, and for swiper after some input and TAB?

@Pitometsu Pitometsu changed the title from optionally show results to immediately show results, or only after TAB Oct 29, 2017

@basil-conto

This comment has been minimized.

Contributor

basil-conto commented Oct 29, 2017

One option is to use the command counsel-faces, followed by the c (customize face) action.

@Pitometsu

This comment has been minimized.

Pitometsu commented Oct 29, 2017

Good point. Added to setup:

(global-set-key [remap describe-face]            'counsel-describe-face)
(global-set-key [remap list-faces-display]       'counsel-faces)

However, it more like describe, but here immediately auto-complete for customize needed.

@abo-abo abo-abo closed this in 3c6eb80 Oct 30, 2017

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Oct 30, 2017

@Pitometsu I consider this solved. I added your suggested rebind to counsel-mode.
@basil-conto Thanks for helping out.

@Pitometsu

This comment has been minimized.

Pitometsu commented Oct 30, 2017

@abo-abo Original issue not solved yet. Even with counsel-mode, when I call customize-face, I have no list of options untill press TAB. But customize-group, for example, working as expected.

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Oct 30, 2017

Even with counsel-mode, when I call customize-face

customize-face isn't designed for ivy. You have to press TAB, because that's the design of customize-face.

In more detail, customize-face has:

(read-face-name "Customize face" (or (face-at-point t t) "all faces") t)

While for immediate completion it should have:

(read-face-name "Customize face" (or (face-at-point t t) "all faces") nil)

I can't change the code of customize-face. But counsel-describe-face is a good alternative.

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