updated result scoring for better matching with descriptions

This commit is contained in:
ericlay 2023-03-30 08:32:52 -05:00
parent 864c9b7430
commit ad26ce2b17
1 changed files with 3 additions and 1 deletions

4
fpf
View File

@ -70,7 +70,8 @@ Official() {
--info=hidden \ --info=hidden \
--ansi \ --ansi \
--margin="2%,1%,2%,1%" \ --margin="2%,1%,2%,1%" \
--cycle | --cycle \
--tiebreak=begin,chunk,length |
awk '{print $1}' | awk '{print $1}' |
sed -e 's/\*$//' | sed -e 's/\*$//' |
xargs -ro sudo pacman -S xargs -ro sudo pacman -S
@ -131,6 +132,7 @@ Aur() {
--ansi \ --ansi \
--margin="2%,1%,2%,1%" \ --margin="2%,1%,2%,1%" \
--cycle \ --cycle \
--tiebreak=begin,chunk,length \
--bind=ctrl-p:preview:'curl --silent https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h={1}' \ --bind=ctrl-p:preview:'curl --silent https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h={1}' \
--bind=ctrl-x:preview:'cat <(yay -Si {1} 2>/dev/null || paru -Si {1}) <(pacman -Ql {1} 2>/dev/null | awk "{print \$2}")' | --bind=ctrl-x:preview:'cat <(yay -Si {1} 2>/dev/null || paru -Si {1}) <(pacman -Ql {1} 2>/dev/null | awk "{print \$2}")' |
awk '{print $1}' | awk '{print $1}' |