diff options
| author | 2026-05-13 13:43:21 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:21 +0100 | |
| commit | 269df21ecb36d822cae993894b3c2bb2f5c885db (patch) | |
| tree | 2d41d391d185babc5901142b33c25d3c8e37dc15 /dot_config | |
| parent | 3b2beec0ca95ce863a6cd4f7bf7be24247f96acd (diff) | |
| download | dotfiles-269df21ecb36d822cae993894b3c2bb2f5c885db.tar.gz dotfiles-269df21ecb36d822cae993894b3c2bb2f5c885db.tar.bz2 dotfiles-269df21ecb36d822cae993894b3c2bb2f5c885db.zip | |
fix(yazi): mark xdg-open opener as orphan
yazi tracks child processes as running tasks. Default `open`
opener runs `xdg-open` synchronously, so opening a pdf (or any
file handed off to an external viewer) leaves yazi convinced a task
is still running and it prompts 'unfinished tasks, quit anyway?' on
exit. orphan = true detaches the spawned process from yazi so the
quit is clean.
Diffstat (limited to 'dot_config')
| -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 793ca59..0ef2780 100644 --- a/dot_config/yazi/yazi.toml +++ b/dot_config/yazi/yazi.toml @@ -3,3 +3,10 @@ show_hidden = true scrolloff = 10 linemode = "mtime" title_format = "Yazi: {cwd}" + +# Override the default `open` opener so xdg-open is detached from yazi +# (otherwise yazi treats the viewer as an unfinished task and prompts on quit). +[opener] +open = [ + { run = 'xdg-open "$@"', desc = "Open", orphan = true }, +] |
