diff --git a/flake.lock b/flake.lock index 4d37591..953e717 100644 --- a/flake.lock +++ b/flake.lock @@ -70,11 +70,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1744045453, - "narHash": "sha256-CqGBZzGZCTcAeFC4MQBXYKE9fCb6KncBr0JVKMFEvas=", + "lastModified": 1744048597, + "narHash": "sha256-vkOXbsZywjjFl9KEye9rwgptq7F4mWb5hu/dPZG4bEM=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "00b6ee68e9fef7cce2a827f248ab935bca5eca6e", + "rev": "0e8ebcd53894f053d5a08b057741191850995983", "type": "github" }, "original": { diff --git a/modules/home/yazi.nix b/modules/home/yazi.nix index 07cb4a1..fc246f8 100644 --- a/modules/home/yazi.nix +++ b/modules/home/yazi.nix @@ -126,10 +126,6 @@ show_symlink = true; }; opener = { - # open = [ - # { run = "plugin open-with-cmd block"; desc = "Open with command in the terminal"; } - # { run = "plugin open-with-cmd"; desc = "Open with command"; } - # ]; edit = [ { run = "emacsclient -r -n \"$@\""; desc = "open in current emacsclient"; orphan = true; } ]; @@ -137,6 +133,11 @@ { run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; } ]; }; + open = { + prepend_rules = [ + { name = "*.zip"; use = "extract"; } + ]; + }; plugin = { prepend_preloaders = [ { name = "/mnt/**"; run = "noop"; } @@ -156,6 +157,7 @@ { mime = "{image,audio,video}/*"; run = "mediainfo";} { mime = "application/x-subrip"; run = "mediainfo";} # Archive previewer + { name = "*.zip"; run = "ouch"; } { mime = "application/*zip"; run = "ouch"; } { mime = "application/x-tar"; run = "ouch"; } { mime = "application/x-bzip2"; run = "ouch"; } @@ -174,16 +176,16 @@ # run = "mime-ext"; # prio = "high"; # } - # { - # id = "git"; - # name = "*"; - # run = "git"; - # } - # { - # id = "git"; - # name = "*/"; - # run = "git"; - # } + { + id = "git"; + name = "*"; + run = "git"; + } + { + id = "git"; + name = "*/"; + run = "git"; + } ]; }; };