Consult/Vertigo/Orderless how to not include (sub)path when finding a file?

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 · 2 comments · view on lemmy.world

2 Comments

danderzei@alien.top · 0 pts · 2y (1 reply)

Try consult-find to search for files using grep.

konrad1977@alien.top · 1 pts · 2y

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)