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

Fuzzy search for projectile find file #1552

Closed
AlexanderArvidsson opened this issue Jul 10, 2019 · 4 comments
Closed

Fuzzy search for projectile find file #1552

AlexanderArvidsson opened this issue Jul 10, 2019 · 4 comments
Labels
is:support A request for user support: questions, how-to's, and discussions re:elisp Personal configuration issues, conflicts or questions status:resolved Issue was addressed internally

Comments

@AlexanderArvidsson
Copy link

I'm currently in the process of switching over to Doom from Spacemacs, and one of the most important thing for me is fuzzy matching when switching files using find-file.

How can I configure doom to have the same behavior as I had in spacemacs.
In spacemacs:
image

This does not even match in doom:
image

I have to write this in order to find the file:
image

@hlissner
Copy link
Member

You have two options:

Disable Ivy, enable helm and fuzzy search:

In your doom! block in ~/.doom.d/init.el:

  1. Uncomment :completion helm
  2. Enable the +fuzzy flag: :completion (helm +fuzzy)
  3. Comment :completion ivy
  4. Run ~/.emacs.d/bin/doom refresh
  5. Restart Emacs.

Or enable fuzzy support for ivy

   :completion
-  ivy
+  (ivy +fuzzy +prescient)

Then run ~/.emacs.d/bin/doom refresh and restart Emacs.

@hlissner hlissner added is:support A request for user support: questions, how-to's, and discussions re:elisp Personal configuration issues, conflicts or questions labels Jul 10, 2019
@AlexanderArvidsson
Copy link
Author

Thanks, works great!
Quick question though, is there a way to customize the colors when searching?
image

@ocharles
Copy link
Contributor

I would note you don't need +prescient - and I've actually found it to be considerably worse than the default.

@hlissner
Copy link
Member

The relevant faces are:

    ivy-minibuffer-match-face-1
    ivy-minibuffer-match-face-2
    ivy-minibuffer-match-face-3
    ivy-minibuffer-match-face-4

You can look up their definition with SPC h F. A simple way to change them is with custom-set-faces!:

(custom-set-faces!
  '(ivy-minibuffer-match-face-1 :background "#000000")
  '(ivy-minibuffer-match-face-2 :background "#0000FF")
  ...)

In any case, I'll consider the original issue resolved.

@hlissner hlissner added the status:resolved Issue was addressed internally label Jul 10, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
is:support A request for user support: questions, how-to's, and discussions re:elisp Personal configuration issues, conflicts or questions status:resolved Issue was addressed internally
Projects
None yet
Development

No branches or pull requests

3 participants