From 6fc7f49449cb237e1aa37eb1025461fe3ea39589 Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Thu, 27 Aug 2026 11:50:43 +0700 Subject: . --- .config/yazi/yazi.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.config/yazi/yazi.toml') diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml index 7f1fde1..bb7127f 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -1,2 +1,22 @@ [mgr] show_hidden = true + +[opener] +edit = [ + { run = "/usr/bin/vis %s", desc = "vis", block = true }, +] + +[open] +rules = [ + { mime = "text/*", use = [ "edit" ] }, + { mime = "application/json", use = [ "edit" ] }, + { mime = "application/javascript", use = [ "edit" ] }, + { mime = "application/typescript", use = [ "edit" ] }, + { mime = "application/xml", use = [ "edit" ] }, + { mime = "application/x-yaml", use = [ "edit" ] }, + { mime = "application/toml", use = [ "edit" ] }, + { mime = "application/x-sh", use = [ "edit" ] }, + { mime = "application/x-shellscript", use = [ "edit" ] }, + { mime = "inode/empty", use = [ "edit" ] }, + { url = "*", use = [ "open", "reveal" ] }, +] -- cgit v1.2.3