From b459f8eef44afaab44e38b8a5946974a4d107301 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:22 +0100 Subject: fix(yazi): open markdown with okular directly Going through xdg-open relied on mimeapps propagation and update-desktop-database cache. Add a dedicated `view-md` opener that invokes okular directly and route *.md, *.markdown, and text/markdown files to it. Still orphan=true to avoid the unfinished-tasks prompt. --- dot_config/yazi/yazi.toml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dot_config/yazi') diff --git a/dot_config/yazi/yazi.toml b/dot_config/yazi/yazi.toml index 747f18c..128c06c 100644 --- a/dot_config/yazi/yazi.toml +++ b/dot_config/yazi/yazi.toml @@ -10,10 +10,14 @@ title_format = "Yazi: {cwd}" open = [ { run = 'xdg-open "$@"', desc = "Open", orphan = true }, ] +view-md = [ + { run = 'okular "$@"', desc = "View with Okular", orphan = true }, +] -# Route markdown through xdg-open (→ okular) instead of $EDITOR. +# Open markdown with okular directly (bypasses xdg-open / mimeapps). [open] prepend_rules = [ - { name = "*.md", use = "open" }, - { mime = "text/markdown", use = "open" }, + { name = "*.md", use = "view-md" }, + { name = "*.markdown", use = "view-md" }, + { mime = "text/markdown", use = "view-md" }, ] -- cgit v1.3.1