aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-19 15:16:09 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-19 15:16:09 +0100
commite5dd5aa8d3e11559eeefef413adbd23f2c8a2d8c (patch)
tree79a655bf4426622d9560d64e03fd3ae42b7d4799
parent918c51d0d431a936b0d226a2709bba84001a4496 (diff)
downloaddotfiles-e5dd5aa8d3e11559eeefef413adbd23f2c8a2d8c.tar.gz
dotfiles-e5dd5aa8d3e11559eeefef413adbd23f2c8a2d8c.tar.bz2
dotfiles-e5dd5aa8d3e11559eeefef413adbd23f2c8a2d8c.zip
fix(yazi): render markdown with glow instead of okular
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.
-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" },