1

Modules/Yazi: Fix xdg-open as default

This commit is contained in:
2026-06-05 20:47:02 +02:00
parent 0773fd4ffd
commit 29d1ddc672

View File

@ -5,11 +5,9 @@
mylib, mylib,
pkgs, pkgs,
... ...
}: }: let
let
inherit (config.homemodules) yazi color; inherit (config.homemodules) yazi color;
in in {
{
options.homemodules.yazi = import ./options.nix {inherit lib mylib;}; options.homemodules.yazi = import ./options.nix {inherit lib mylib;};
config = lib.mkIf yazi.enable { config = lib.mkIf yazi.enable {
@ -19,7 +17,8 @@ in
shellWrapperName = "y"; shellWrapperName = "y";
plugins = { plugins = {
inherit (pkgs.yaziPlugins) inherit
(pkgs.yaziPlugins)
chmod chmod
diff diff
full-border full-border
@ -99,14 +98,14 @@ in
} }
]; ];
open = [ open = [
{
run = ''imv "$@"'';
desc = "Open selection with imv";
}
{ {
run = ''xdg-open "$@"''; run = ''xdg-open "$@"'';
desc = "Open selection with xdg-open"; desc = "Open selection with xdg-open";
} }
{
run = ''imv "$@"'';
desc = "Open selection with imv";
}
{ {
# TODO: For some reason, junction does not exit after choosing an application... # TODO: For some reason, junction does not exit after choosing an application...
run = ''junction "$@"''; run = ''junction "$@"'';