I use Consult, Vertico and orderless in my config. But when I am looking for a file (consult-ls-git) I would like it not to include subpath or the path when filtering the results, or if it’s possible to show matches in filename first - so they have more score for the sorting. Is this possible.

/LoginView/SomeFile.swift
/LoginView/LoginView.swift

Right now I would get this when I type “Login”, that fine but if it’s not possible to exclude non matching files, I would like the LoginView to be the first choice.

0 points

Try consult-find to search for files using grep.

permalink
report
reply
1 point

I have grep tools too, I just wanted to know if you can configure the completions to not include matches from paths? This will include matches in file, I only want to match on the file name (case insensitive)

permalink
report
parent
reply

Emacs

!emacs@communick.news

Create post

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for “emacs” and “vi” link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

Community stats

  • 18

    Monthly active users

  • 562

    Posts

  • 2.4K

    Comments