AutoYADM commit: 2025-03-03 15:40:13

This commit is contained in:
Daniel Fichtinger 2025-03-03 15:40:13 -05:00
parent b91549fc0a
commit ed42c28cea
2 changed files with 13 additions and 12 deletions

View file

@ -129,6 +129,7 @@ file-types = [
{ glob = "hgrc" }, { glob = "hgrc" },
{ glob = "npmrc" }, { glob = "npmrc" },
{ glob = "rclone.conf" }, { glob = "rclone.conf" },
{ glob = "config" },
"conf", "conf",
"properties", "properties",
"cfg", "cfg",

View file

@ -29,20 +29,20 @@ export FZF_DEFAULT_OPTS="
export FZF_TMUX_OPTS=" -p90%,70% " export FZF_TMUX_OPTS=" -p90%,70% "
source ~/.config/zsh/fzf-zsh-completion.sh # source ~/.config/zsh/fzf-zsh-completion.sh
# press ctrl-r to repeat completion *without* accepting i.e. reload the completion # # press ctrl-r to repeat completion *without* accepting i.e. reload the completion
# press right to accept the completion and retrigger it # # press right to accept the completion and retrigger it
# press alt-enter to accept the completion and run it # # press alt-enter to accept the completion and run it
keys=( # keys=(
ctrl-r:'repeat-fzf-completion' # ctrl-r:'repeat-fzf-completion'
right:accept:'repeat-fzf-completion' # right:accept:'repeat-fzf-completion'
alt-enter:accept:'zle accept-line' # alt-enter:accept:'zle accept-line'
) # )
zstyle ':completion:*' fzf-completion-keybindings "${keys[@]}" # zstyle ':completion:*' fzf-completion-keybindings "${keys[@]}"
# also accept and retrigger completion when pressing / when completing cd # # also accept and retrigger completion when pressing / when completing cd
zstyle ':completion::*:cd:*' fzf-completion-keybindings "${keys[@]}" /:accept:'repeat-fzf-completion' # zstyle ':completion::*:cd:*' fzf-completion-keybindings "${keys[@]}" /:accept:'repeat-fzf-completion'
export FZF_CTRL_T_OPTS="--preview 'bat --color=always -n --line-range :500 {}'" export FZF_CTRL_T_OPTS="--preview 'bat --color=always -n --line-range :500 {}'"
export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'" export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'"