mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +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:
11
kittens/diff/options/definition.py
Normal file → Executable file
11
kittens/diff/options/definition.py
Normal file → Executable file
@@ -47,6 +47,17 @@ opt('replace_tab_by', '\\x20\\x20\\x20\\x20',
|
||||
option_type='python_string',
|
||||
long_text='The string to replace tabs with. Default is to use four spaces.'
|
||||
)
|
||||
|
||||
opt('file_ignores', '',
|
||||
option_type='pattern_list',
|
||||
long_text='List of file patterns that are ignored when directories are compared'
|
||||
)
|
||||
|
||||
opt('ignore_paths', '',
|
||||
option_type='pattern_list',
|
||||
long_text='List of directory patterns that are ignored when directories are compared'
|
||||
)
|
||||
|
||||
egr() # }}}
|
||||
|
||||
# colors {{{
|
||||
|
||||
Reference in New Issue
Block a user