From b9af26cc3e1f97d0e2eee6359b26b93cbaf962be Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Mon, 30 Jun 2025 08:39:29 -0500 Subject: [PATCH] ADD: yazi, remove lf --- fish/functions/lfcd.fish | 2 +- noah-home.nix | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/fish/functions/lfcd.fish b/fish/functions/lfcd.fish index ea2b0cb..d96d106 100644 --- a/fish/functions/lfcd.fish +++ b/fish/functions/lfcd.fish @@ -13,7 +13,7 @@ function lfcd set tmp (mktemp) - lf -last-dir-path=$tmp $argv + yazi --cwd-file=$tmp $argv if test -f "$tmp" set dir (cat $tmp) rm -f $tmp diff --git a/noah-home.nix b/noah-home.nix index 9766c17..ce60a9a 100644 --- a/noah-home.nix +++ b/noah-home.nix @@ -43,7 +43,6 @@ in iperf3 entr bitwarden-cli - lf # Previewer for LF unstable.pistol sqlite @@ -214,6 +213,33 @@ in addKeysToAgent = "yes"; }; + programs.yazi = { + enable = true; + package = unstable.yazi; + enableFishIntegration = true; + settings = { + preview = { + image_quality = 90; + }; + tasks = { + image_bound = [ + 0 + 0 + ]; + }; + }; + plugins = { + rsync = unstable.yaziPlugins.rsync; + piper = unstable.yaziPlugins.piper; + nord = unstable.yaziPlugins.nord; + mediainfo = unstable.yaziPlugins.mediainfo; + glow = unstable.yaziPlugins.glow; + git = unstable.yaziPlugins.git; + diff = unstable.yaziPlugins.diff; + duckdb = unstable.yaziPlugins.duckdb; + }; + }; + services.ssh-agent.enable = true; programs.direnv = { -- 2.51.2