mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 05:24:20 +02:00
Update in response to feedback
- one configuration option: ignore_paths - use shlex to parse option to support whitespace and in-line comments - change option type to Tuple[str, ...] - remove ignored directories from dirnames to prevent scanning
This commit is contained in:
5
kittens/diff/options/parse.py
generated
5
kittens/diff/options/parse.py
generated
@@ -86,10 +86,7 @@ class Parser:
|
||||
for k in parse_map(val):
|
||||
ans['map'].append(k)
|
||||
|
||||
def file_ignores(self, val: str, ans: typing.Dict[str, typing.List[str]]):
|
||||
ans['file_ignores'] = pattern_list(val)
|
||||
|
||||
def ignore_paths(self, val: str, ans: typing.Dict[str, typing.List[str]]):
|
||||
def ignore_paths(self, val: str, ans: typing.Dict[str, typing.Any]):
|
||||
ans['ignore_paths'] = pattern_list(val)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user