lksdjklads
This commit is contained in:
@@ -55,7 +55,9 @@ _nix_fd() (
|
||||
readarray -d $'\n' -t storepaths < <(
|
||||
"$nix" build "${nix_args[@]}" "${nix_flags[@]}" --print-out-paths --no-link
|
||||
)
|
||||
fd "${fd_pattern[@]}" "${storepaths[@]}" "${fd_flags[@]}"
|
||||
if [[ "${#storepaths[@]}" -gt 0 ]]; then
|
||||
fd "${fd_pattern[@]}" "${storepaths[@]}" "${fd_flags[@]}"
|
||||
fi
|
||||
)
|
||||
|
||||
nix-fd() { _nix_fd "nix" "$@"; }
|
||||
|
||||
@@ -72,9 +72,19 @@ in
|
||||
changeDirWidgetOptions = [ "--preview 'tree -C {} | head -200'" ];
|
||||
|
||||
# ctrl-t
|
||||
fileWidgetCommand = "fd --type f"; # respects .gitignore
|
||||
# fileWidgetCommand = "fd . --type file"; # respects .gitignore
|
||||
fileWidgetCommand = "fd . | sort --ignore-case --general-numeric-sort"; # respects .gitignore
|
||||
fileWidgetOptions = [
|
||||
"--bind 'home:first'"
|
||||
"--bind 'end:last'"
|
||||
"--cycle"
|
||||
|
||||
#"--preview 'head {}'"
|
||||
# "--preview 'bat {}'"
|
||||
# "--preview 'tail -n$LINES {} | bat --file-name {} --paging never --style plain'"
|
||||
# "--preview 'bat {} --paging never --style plain' --preview-window follow"
|
||||
"--preview 'if [[ -f {} ]]; then tail -n$LINES {} | bat --paging=never --style=plain --color=always --file-name {} ; else file {} ; fi' --preview-window follow"
|
||||
|
||||
# https://github.com/junegunn/fzf/discussions/3363#discussioncomment-6419463
|
||||
"--bind 'ctrl-a:reload:eval $FZF_DEFAULT_COMMAND --no-ignore'"
|
||||
];
|
||||
@@ -95,9 +105,9 @@ in
|
||||
#programs.zoxide.enable = true;
|
||||
#programs.zoxide.options = [ "--cmd cd --cmd dc" ];
|
||||
|
||||
# https://carapace-sh.github.io/carapace-bin/completers.html
|
||||
programs.carapace.enable = true; # completions
|
||||
programs.bash.sessionVariables.CARAPACE_EXCLUDES = "just"; # comma-separated
|
||||
# # https://carapace-sh.github.io/carapace-bin/completers.html
|
||||
# programs.carapace.enable = true; # completions
|
||||
# programs.bash.sessionVariables.CARAPACE_EXCLUDES = "just"; # comma-separated
|
||||
|
||||
# i can't type
|
||||
home.shellAliases.sl = "ls";
|
||||
|
||||
Reference in New Issue
Block a user