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