From e5dd5aa8d3e11559eeefef413adbd23f2c8a2d8c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 19 May 2026 15:16:09 +0100 Subject: fix(yazi): render markdown with glow instead of okular MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit okular is installed as flatpak (org.kde.okular), not as a native binary, so the bare `okular` invocation in the opener failed silently (orphan = true hides the ENOENT). glow is already in base.txt and renders inline in the terminal — better fit for a TUI file manager. block = true keeps yazi waiting until the user quits glow, mirroring `less`-style behaviour. --- dot_config/yazi/yazi.toml | 5 +++-- 1 file 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" }, -- cgit v1.3.1