diff --git a/fish/config.fish b/fish/config.fish index 5d6b144..9f34f5f 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -17,10 +17,6 @@ abbr gb "git branch" abbr gd "git diff" abbr ga "git add" abbr glog "git log –graph –decorate –oneline –all" -if type -q "emanote" - abbr n "cd ~/repos/notes" - abbr ne "cd ~/repos/notes; nvim" -end if test -d "~/repos" alias r "cd ~/repos" 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 ca033f7..320aa09 100644 --- a/noah-home.nix +++ b/noah-home.nix @@ -35,7 +35,6 @@ in natscli nkeys mkcert - lf jq bat sqlite @@ -158,6 +157,30 @@ in nix-direnv.enable = true; }; + 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; + }; + }; + # Independent config files. xdg.configFile.nvim = { source = ./nvim;