<commit_before># Use git for faster finding.
# export FZF_DEFAULT_COMMAND='
#   (git ls-tree -r --name-only HEAD ||
#    find . -path "*/\.*" -prune -o -type f -print -o -type l -print |
#       sed s/^..//) 2> /dev/null'
# This is evaluated by the shell so don't use functions or aliases that expect tty output.
export FZF_DEFAULT_COMMAND='command rg --files'

export FZF_DEFAULT_OPTS="
  --history $HOME/.fzf.history
  --bind 'ctrl-f:page-down,ctrl-b:page-up,ctrl-s:toggle-sort,ctrl-o:jump'
"


# Restore ^r and put fzf hist on another key.
bindkey '^R' history-incremental-search-backward
bindkey '^X^H' fzf-history-widget
<commit_msg>Add more default keybindings for fzf<commit_after># Use git for faster finding.
# export FZF_DEFAULT_COMMAND='
#   (git ls-tree -r --name-only HEAD ||
#    find . -path "*/\.*" -prune -o -type f -print -o -type l -print |
#       sed s/^..//) 2> /dev/null'
# This is evaluated by the shell so don't use functions or aliases that expect tty output.
export FZF_DEFAULT_COMMAND='command rg --files'

# --expect=key will print key on first line of results
# --cycle
# available: ctrl-o ctrl-q ctrl-r ctrl-s ctrl-v
export FZF_DEFAULT_OPTS="
  --history $HOME/.fzf.history
  --filepath-word
  --bind 'ctrl-f:page-down,ctrl-b:page-up,ctrl-s:toggle-sort,ctrl-o:jump'
  --bind 'alt-up:last,alt-down:first'
  --bind 'ctrl-g:jump'
"


# Restore ^r and put fzf hist on another key.
bindkey '^R' history-incremental-search-backward
bindkey '^X^H' fzf-history-widget

{'fraction_non_alphanumeric': 0.15157612340710933, 'fraction_numerical': 0.0013413816230717639, 'mean_word_length': 3.2997118155619596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '744512', 'n_tokens_mistral': 573, 'n_tokens_neox': 557, 'n_words': 164}