this post was submitted on 12 Oct 2023
0 points (50.0% liked)

Emacs

311 readers
1 users here now

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

Get Emacs

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

founded 1 year ago
MODERATORS
 

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.

top 2 comments
sorted by: hot top controversial new old
[–] danderzei@alien.top 0 points 1 year ago (1 children)

Try consult-find to search for files using grep.

[–] konrad1977@alien.top 1 points 1 year ago

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)