feat: support x-ndjson mime-type for JSON files (#1190)

This commit is contained in:
三咲雅 · Misaki Masa 2024-06-23 18:37:52 +08:00 committed by GitHub
parent 804662ef82
commit 696dcf2668
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,8 +65,8 @@ rules = [
{ mime = "application/{,g}zip", use = [ "extract", "reveal" ] },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", use = [ "extract", "reveal" ] },
{ mime = "application/json", use = [ "edit", "reveal" ] },
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
{ mime = "application/{json,x-ndjson}", use = [ "edit", "reveal" ] },
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
{ name = "*", use = [ "open", "reveal" ] },
]
@ -103,7 +103,7 @@ previewers = [
{ mime = "text/*", run = "code" },
{ mime = "*/{xml,javascript,x-wine-extension-ini}", run = "code" },
# JSON
{ mime = "application/json", run = "json" },
{ mime = "application/{json,x-ndjson}", run = "json" },
# Image
{ mime = "image/{heic,jxl,svg+xml}", run = "magick" },
{ mime = "image/*", run = "image" },