Modules/Yazi: Fix xdg-open as default
This commit is contained in:
@ -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 "$@"'';
|
||||
|
||||
Reference in New Issue
Block a user