From 696dcf2668770b09839424a825b06d2ff7556b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Sun, 23 Jun 2024 18:37:52 +0800 Subject: [PATCH] feat: support `x-ndjson` mime-type for JSON files (#1190) --- yazi-config/preset/yazi.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yazi-config/preset/yazi.toml b/yazi-config/preset/yazi.toml index db6f72df..c466b103 100644 --- a/yazi-config/preset/yazi.toml +++ b/yazi-config/preset/yazi.toml @@ -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" },