From a3ef734c8368dd4615b57a99cd56d927b357e63f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 25 May 2025 13:56:37 +0530 Subject: [PATCH] ... --- kittens/choose_files/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kittens/choose_files/main.py b/kittens/choose_files/main.py index ca7830faf..737560eb2 100644 --- a/kittens/choose_files/main.py +++ b/kittens/choose_files/main.py @@ -42,9 +42,11 @@ approach is to use a small value and first change to the directory of interest t 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: