<commit_before>
MY_LOCAL_PLUGINS="${0:a:h}/zshplugins"

# TODO: add unixorn/git-extra-commands?
# TODO: add RobSis/zsh-completion-generator

source "${MY_LOCAL_PLUGINS}/k/k.sh"
source "${MY_LOCAL_PLUGINS}/zsh-bd/bd.zsh"
source "${MY_LOCAL_PLUGINS}/zsh-autosuggestions/zsh-autosuggestions.zsh"

################################################################################
# ZAW
################################################################################

source "${MY_LOCAL_PLUGINS}/zaw/zaw.zsh"

bindkey '^R' zaw-history
bindkey '^X\t' zaw-cdr
bindkey '^X;' zaw
bindkey '^X^a' zaw-searcher
bindkey '\er' zaw-fasd-files
bindkey '\eg' zaw-git-files
bindkey '\ee' zaw-fasd-directories
bindkey '\ep' zaw-process

bindkey -M filterselect '\e' send-break
bindkey -M filterselect '^J' down-line-or-history<commit_msg>ZSH: Only bind ^X^a if zaw-searcher is available<commit_after>
MY_LOCAL_PLUGINS="${0:a:h}/zshplugins"

# TODO: add unixorn/git-extra-commands?
# TODO: add RobSis/zsh-completion-generator

source "${MY_LOCAL_PLUGINS}/k/k.sh"
source "${MY_LOCAL_PLUGINS}/zsh-bd/bd.zsh"
source "${MY_LOCAL_PLUGINS}/zsh-autosuggestions/zsh-autosuggestions.zsh"

################################################################################
# ZAW
################################################################################

source "${MY_LOCAL_PLUGINS}/zaw/zaw.zsh"

bindkey '^R' zaw-history
bindkey '^X\t' zaw-cdr
bindkey '^X;' zaw
if zaw-print-src|grep -q searcher; then
    bindkey '^X^a' zaw-searcher
fi
bindkey '\er' zaw-fasd-files
bindkey '\eg' zaw-git-files
bindkey '\ee' zaw-fasd-directories
bindkey '\ep' zaw-process

bindkey -M filterselect '\e' send-break
bindkey -M filterselect '^J' down-line-or-history
{'fraction_non_alphanumeric': 0.3168604651162791, 'fraction_numerical': 0.0011627906976744186, 'mean_word_length': 6.418103448275862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3792799', 'n_tokens_mistral': 613, 'n_tokens_neox': 628, 'n_words': 114}