mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +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:
@@ -3,6 +3,7 @@
|
||||
# License: GPLv3 Copyright: 2021, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
|
||||
import shlex
|
||||
from typing import Any, Dict, Iterable, List, Tuple, Union
|
||||
|
||||
from kitty.conf.utils import (
|
||||
@@ -58,8 +59,8 @@ def syntax_aliases(raw: str) -> Dict[str, str]:
|
||||
return ans
|
||||
|
||||
|
||||
def pattern_list(raw: str) -> List[str]:
|
||||
return raw.split(' ')
|
||||
def pattern_list(raw: str) -> Tuple[str, ...]:
|
||||
return tuple(shlex.split(raw, comments=True))
|
||||
|
||||
|
||||
def parse_map(val: str) -> Iterable[KittensKeyDefinition]:
|
||||
|
||||
Reference in New Issue
Block a user