<commit_before># fzf cache
FZF_CACHE=~/.cache/fzf
fzf() {
  exec > >(tee "$FZF_CACHE")
  command fzf "$@"
}

fzc() {
  cat "$FZF_CACHE"
}

# fzf + ag
zag() {
  local c="ag --color -C 5 $@ {}"
  ag -l "$@" | fzf --multi \
    --preview "$c" \
    --bind "ctrl-o:execute-multi[$c | less -R >&2]"
}<commit_msg>dan got mad about this so i'll change it<commit_after># fzf cache
FZF_CACHE=~/.cache/fzf
fzf() {
  exec > >(tee "$FZF_CACHE")
  command fzf "$@"
}

fzc() {
  cat "$FZF_CACHE"
}

# fzf + ag
zag() {
  local c="ag --color -C 5 $* {}"
  ag -l "$@" | fzf --multi \
    --preview "$c" \
    --bind "ctrl-o:execute-multi[$c | less -R >&2]"
}
{'fraction_non_alphanumeric': 0.23868954758190328, 'fraction_numerical': 0.0062402496099844, 'mean_word_length': 2.546961325966851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6020249', 'n_tokens_mistral': 319, 'n_tokens_neox': 303, 'n_words': 72}