From 19073cec9dc8b72ea09145241632a1f33e458e93 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:22 +0100 Subject: feat(yazi): route markdown files through xdg-open Default yazi rule treats .md as text and hands it to $EDITOR. Prepend a rule that uses the `open` opener (xdg-open, now pointed at okular) so pressing Enter on a markdown file in yazi opens the rendered view instead of nvim. --- dot_config/yazi/yazi.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dot_config/yazi/yazi.toml') diff --git a/dot_config/yazi/yazi.toml b/dot_config/yazi/yazi.toml index 0ef2780..747f18c 100644 --- a/dot_config/yazi/yazi.toml +++ b/dot_config/yazi/yazi.toml @@ -10,3 +10,10 @@ title_format = "Yazi: {cwd}" open = [ { run = 'xdg-open "$@"', desc = "Open", orphan = true }, ] + +# Route markdown through xdg-open (→ okular) instead of $EDITOR. +[open] +prepend_rules = [ + { name = "*.md", use = "open" }, + { mime = "text/markdown", use = "open" }, +] -- cgit v1.3.1