<commit_before># shellcheck disable=SC1090

cite about-plugin
about-plugin 'Enable fzf'

# ---- BASIC ----
FZF_COLORS='--color=light,hl:196,hl+:196,fg+:255,bg+:238,prompt:33,pointer:255,marker:160,info:252,spinner:237,header:75 --ansi --black'
FZF_PROMPT="--prompt='> '"
FZF_KEYBINDS="--bind=\
left:page-up,\
right:page-down,\
ctrl-t:toggle-all,\
ctrl-n:page-down,\
ctrl-p:page-up,\
alt-j:jump,\
esc:deselect-all,\
?:toggle-preview\
"

# ---- PREVIEW ----
FZF_CTRL_T_PREVIEW="--preview '(cat {} || tree -CF {}) 2> /dev/null | head -200'"<commit_msg>fix(plugin): skip fzf plugin if fzf not installed<commit_after># shellcheck disable=SC1090

cite about-plugin
about-plugin 'Enable fzf'

if has not command fzf; then return; fi

# ---- BASIC ----
FZF_COLORS='--color=light,hl:196,hl+:196,fg+:255,bg+:238,prompt:33,pointer:255,marker:160,info:252,spinner:237,header:75 --ansi --black'
FZF_PROMPT="--prompt='> '"
FZF_KEYBINDS="--bind=\
left:page-up,\
right:page-down,\
ctrl-t:toggle-all,\
ctrl-n:page-down,\
ctrl-p:page-up,\
alt-j:jump,\
esc:deselect-all,\
?:toggle-preview\
"

# ---- PREVIEW ----
FZF_CTRL_T_PREVIEW="--preview '(cat {} || tree -CF {}) 2> /dev/null | head -200'"
{'fraction_non_alphanumeric': 0.22893617021276597, 'fraction_numerical': 0.06127659574468085, 'mean_word_length': 4.469767441860465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2982928', 'n_tokens_mistral': 557, 'n_tokens_neox': 492, 'n_words': 76}