Skip to content
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
Closed

immediately show results, or only after TAB #1259

Pitometsu opened this issue Oct 29, 2017 · 5 comments

Comments

@Pitometsu
Copy link

@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 optionally show results immediately show results, or only after TAB Oct 29, 2017
@basil-conto
Copy link
Collaborator

@basil-conto basil-conto commented Oct 29, 2017

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

@Pitometsu
Copy link
Author

@Pitometsu 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
Copy link
Owner

@abo-abo 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
Copy link
Author

@Pitometsu 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
Copy link
Owner

@abo-abo 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.