feat(base): preview files when using f alias
This commit is contained in:
parent
b8be6a3a4e
commit
35b2144c68
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,7 @@ in
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
cd = "z";
|
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-switch = nom-system-command "sudo nixos-rebuild switch --flake ~/.dotfiles";
|
||||||
nixos-boot = nom-system-command "sudo nixos-rebuild boot --flake ~/.dotfiles";
|
nixos-boot = nom-system-command "sudo nixos-rebuild boot --flake ~/.dotfiles";
|
||||||
|
@ -154,6 +154,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultOptions = [
|
defaultOptions = [
|
||||||
"--height 50%"
|
"--height 50%"
|
||||||
|
"--bind alt-j:preview-down,alt-k:preview-up"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
zoxide.enable = true;
|
zoxide.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue