mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Update known textual mimes to Python
Also add default aliases for JavaScript and XML in Go.
This commit is contained in:
parent
5a86bc2411
commit
83f505e209
2 changed files with 16 additions and 1 deletions
|
|
@ -21,7 +21,20 @@ known_extensions = {
|
|||
}
|
||||
|
||||
|
||||
text_mimes = ('application/javascript', 'application/x-sh', 'application/x-shellscript', 'application/json')
|
||||
text_mimes = (
|
||||
'application/x-sh',
|
||||
'application/x-csh',
|
||||
'application/x-shellscript',
|
||||
'application/javascript',
|
||||
'application/json',
|
||||
'application/xml',
|
||||
'application/x-yaml',
|
||||
'application/yaml',
|
||||
'application/x-toml',
|
||||
'application/toml',
|
||||
'application/rss+xml',
|
||||
'application/xhtml+xml',
|
||||
)
|
||||
|
||||
|
||||
def is_rc_file(path: str) -> bool:
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@ var known_textual_mimes = map[string]bool{
|
|||
"application/x-sh": true,
|
||||
"application/x-csh": true,
|
||||
"application/x-shellscript": true,
|
||||
"application/javascript": true,
|
||||
"application/json": true,
|
||||
"application/xml": true,
|
||||
"application/x-yaml": true,
|
||||
"application/yaml": true,
|
||||
"application/x-toml": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue