fzf
This commit is contained in:
parent
a8c291abed
commit
6dd77f1154
|
@ -79,7 +79,24 @@
|
|||
programs.nix-index-database.comma.enable = true; # via nix-index-database flake
|
||||
#programs.command-not-found.enable = false; # mutex with nix-index
|
||||
|
||||
programs.fzf.enable = true; # TODO: does this conflict with system-wide setup?
|
||||
programs.fzf = {
|
||||
enable = true; # TODO: does this conflict with system-wide setup?
|
||||
|
||||
# alt-c
|
||||
changeDirWidgetCommand = "fd --type d"; # respects .gitignore
|
||||
changeDirWidgetOptions = [ "--preview 'tree -C {} | head -200'" ];
|
||||
|
||||
# ctrl-t
|
||||
fileWidgetCommand = "fd --type f"; # respects .gitignore
|
||||
fileWidgetOptions = [
|
||||
#"--preview 'head {}'"
|
||||
# https://github.com/junegunn/fzf/discussions/3363#discussioncomment-6419463
|
||||
"--bind 'ctrl-a:reload:eval $FZF_DEFAULT_COMMAND --no-ignore'"
|
||||
];
|
||||
|
||||
# ctrl-r
|
||||
#historyWidgetOptions = [ "--sort" "--exact" ];
|
||||
};
|
||||
|
||||
programs.eza.enable = true;
|
||||
programs.eza.enableAliases = lib.mkIf (lib.versionOlder config.home.version.release "24.05") true;
|
||||
|
|
Loading…
Reference in New Issue