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,
pkgs,
...
}:
let
}: let
inherit (config.homemodules) yazi color;
in
{
in {
options.homemodules.yazi = import ./options.nix {inherit lib mylib;};
config = lib.mkIf yazi.enable {
@ -19,7 +17,8 @@ in
shellWrapperName = "y";
plugins = {
inherit (pkgs.yaziPlugins)
inherit
(pkgs.yaziPlugins)
chmod
diff
full-border
@ -99,14 +98,14 @@ in
}
];
open = [
{
run = ''imv "$@"'';
desc = "Open selection with imv";
}
{
run = ''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...
run = ''junction "$@"'';