summaryrefslogtreecommitdiff
path: root/.config/yazi/yazi.toml
diff options
context:
space:
mode:
Diffstat (limited to '.config/yazi/yazi.toml')
-rw-r--r--.config/yazi/yazi.toml20
1 files changed, 20 insertions, 0 deletions
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" ] },
+]