Add more text file types to kitten diff completion

Fixes #9556
This commit is contained in:
Kovid Goyal
2026-02-25 08:57:54 +05:30
parent dba73e82be
commit b26d0b6ac5

View File

@@ -314,6 +314,8 @@ elif __name__ == '__doc__':
cd['options'] = OPTIONS
cd['help_text'] = help_text
cd['short_desc'] = 'Pretty, side-by-side diffing of files and images'
cd['args_completion'] = CompletionSpec.from_string('type:file mime:text/* mime:image/* group:"Text and image files"')
cd['args_completion'] = CompletionSpec.from_string(
'type:file mime:text/* mime:image/* ext:sh ext:json ext:yaml ext:toml ext:lua ext:rss ext:xml ext:xhtml'
' group:"Text and image files"')
elif __name__ == '__conf__':
sys.options_definition = definition # type: ignore