feat(base): preview files when using f alias

This commit is contained in:
Moritz Böhme 2023-07-04 11:46:02 +02:00
parent b8be6a3a4e
commit 35b2144c68
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -45,7 +45,7 @@ in
mv = "mv -i";
cd = "z";
f = "fzf --multi --bind \"enter:become($EDITOR {+})\"";
f = ''fzf --multi --bind "enter:become($EDITOR {+})" --preview "bat --color=always --style=header,grid --line-range :500 {+}"'';
nixos-switch = nom-system-command "sudo nixos-rebuild switch --flake ~/.dotfiles";
nixos-boot = nom-system-command "sudo nixos-rebuild boot --flake ~/.dotfiles";
@ -154,6 +154,7 @@ in
enable = true;
defaultOptions = [
"--height 50%"
"--bind alt-j:preview-down,alt-k:preview-up"
];
};
zoxide.enable = true;