mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 09:57:16 +08:00
Merge pull request #505 from oh-my-fish/fix/search-only-desc
Limit search to name+description
This commit is contained in:
commit
751ca97a28
|
@ -73,7 +73,7 @@ function omf.index.query -d 'Query packages in the index'
|
|||
type_matches = 1;
|
||||
}
|
||||
|
||||
!text_matches && !/^#/ {
|
||||
!text_matches && !/^#/ && $1 == "description" {
|
||||
if (match(tolower($2), q_text)) {
|
||||
text_matches = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user