diff options
| author | 2026-05-13 13:43:22 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:22 +0100 | |
| commit | 19073cec9dc8b72ea09145241632a1f33e458e93 (patch) | |
| tree | 00559a6682f312d36fbdb900988a55ab3a3052ba /dot_config/yazi | |
| parent | c5b9b2872720e09e6dec256b326633cd0d6cb97a (diff) | |
| download | dotfiles-19073cec9dc8b72ea09145241632a1f33e458e93.tar.gz dotfiles-19073cec9dc8b72ea09145241632a1f33e458e93.tar.bz2 dotfiles-19073cec9dc8b72ea09145241632a1f33e458e93.zip | |
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.
Diffstat (limited to 'dot_config/yazi')
| -rw-r--r-- | dot_config/yazi/yazi.toml | 7 |
1 files changed, 7 insertions, 0 deletions
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" }, +] |
