mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 21:55:29 +02:00
diff kitten: add options to ignore paths when comparing directories
Tested locally & over SSH:
$ kitty +kitten diff /local/path /local/path2
$ kitty +kitten diff /local/path ssh:remote:/path
This commit is contained in:
8
kittens/diff/options/parse.py
generated
8
kittens/diff/options/parse.py
generated
@@ -1,7 +1,7 @@
|
||||
# generated by gen-config.py DO NOT edit
|
||||
|
||||
import typing
|
||||
from kittens.diff.options.utils import parse_map, syntax_aliases
|
||||
from kittens.diff.options.utils import parse_map, pattern_list, syntax_aliases
|
||||
from kitty.conf.utils import merge_dicts, positive_int, python_string, to_color, to_color_or_none
|
||||
|
||||
|
||||
@@ -86,6 +86,12 @@ 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]]):
|
||||
ans['ignore_paths'] = pattern_list(val)
|
||||
|
||||
|
||||
def create_result_dict() -> typing.Dict[str, typing.Any]:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user