aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--dot_config/yazi/yazi.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/dot_config/yazi/yazi.toml b/dot_config/yazi/yazi.toml
index 267740c..0387edc 100644
--- a/dot_config/yazi/yazi.toml
+++ b/dot_config/yazi/yazi.toml
@@ -8,9 +8,10 @@ title_format = "Yazi: {cwd}"
# (otherwise yazi treats the viewer as an unfinished task and prompts on quit).
[opener]
open = [{ run = 'xdg-open "$@"', desc = "Open", orphan = true }]
-view-md = [{ run = 'okular "$@"', desc = "View with Okular", orphan = true }]
+view-md = [{ run = 'glow -p -- "$@"', desc = "Render markdown (glow)", block = true }]
-# Open markdown with okular directly (bypasses xdg-open / mimeapps).
+# Render markdown with glow inside yazi instead of letting xdg-open hand it
+# to a text editor.
[open]
prepend_rules = [
{ url = "*.md", use = "view-md" },