This commit is contained in:
Kovid Goyal 2025-05-25 13:56:37 +05:30
parent 73d1d076e0
commit a3ef734c83
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -42,9 +42,11 @@
opt('+modify_score', r'(^|/)\.[^/]+(/|$) *= 0.5', add_to_default=True, long_text='''
Modify the score of items matching the specified regular expression (matches against the absolute path).
Can be used to make certain files and directories less or more prominent in the results.
Can be specified multiple times. The default includes rules to reduce the score of hidden items.
Can be specified multiple times. The default includes rules to reduce the score of hidden items and
items in some well known cache folder names.
The syntax is :code:`regular-expression operator value`. Supported operators are: :code:`*=, +=, -=, /=`.
''')
opt('+modify_score', '(^|/)__pycache__(/|$) *= 0.5', add_to_default=True)
egr()
def main(args: list[str]) -> None: