<commit_before>" fzf
let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-x': 'split',
  \ 'ctrl-v': 'vsplit' }

" Customize fzf colors to match your color scheme
let g:fzf_colors =
\ { 'fg':      ['fg', 'Normal'],
  \ 'bg':      ['bg', 'Normal'],
  \ 'hl':      ['fg', 'Comment'],
  \ 'fg+':     ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
  \ 'bg+':     ['bg', 'CursorLine', 'CursorColumn'],
  \ 'hl+':     ['fg', 'Statement'],
  \ 'info':    ['fg', 'PreProc'],
  \ 'border':  ['fg', 'Ignore'],
  \ 'prompt':  ['fg', 'Conditional'],
  \ 'pointer': ['fg', 'Exception'],
  \ 'marker':  ['fg', 'Keyword'],
  \ 'spinner': ['fg', 'Label'],
  \ 'header':  ['fg', 'Comment'] }

let g:fzf_commits_log_options = '--all --graph --abbrev-commit --date=local --date=short --color=always '
  \ . '--pretty=format:"%C(yellow)%h %C(cyan)%ad%C(auto)%d %Creset%s %C(blue)<%aN>"'
let $FZF_DEFAULT_COMMAND = 'fd --type file --color=always --hidden --exclude .git'
let $FZF_DEFAULT_OPTS = ' --ansi --hscroll-off=80 --multi'
let g:fzf_layout = { 'window': 'enew' }

command! -bang -nargs=* Fzf
  \ call fzf#run({
  \ 'source': 'fd --type file --color=always --hidden --exclude .git',
  \ 'sink': 'e',
  \ 'options': ' --preview="bat --color=always {}" --preview-window=up:60%'
  \ })

command! -bang -nargs=* Rg
  \ call fzf#vim#grep(
  \   'rg --column --line-number --hidden -g "!.git/" -g "!.yarn/" --no-heading --pretty --smart-case --max-columns=160 '.shellescape(<q-args>), 1,
  \   <bang>0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%')
  \           : fzf#vim#with_preview('up:60%', '?'),
  \   <bang>0)
<commit_msg>Update ctrl-p command to ignore yarn v2 cache<commit_after>" fzf
let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-x': 'split',
  \ 'ctrl-v': 'vsplit' }

" Customize fzf colors to match your color scheme
let g:fzf_colors =
\ { 'fg':      ['fg', 'Normal'],
  \ 'bg':      ['bg', 'Normal'],
  \ 'hl':      ['fg', 'Comment'],
  \ 'fg+':     ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
  \ 'bg+':     ['bg', 'CursorLine', 'CursorColumn'],
  \ 'hl+':     ['fg', 'Statement'],
  \ 'info':    ['fg', 'PreProc'],
  \ 'border':  ['fg', 'Ignore'],
  \ 'prompt':  ['fg', 'Conditional'],
  \ 'pointer': ['fg', 'Exception'],
  \ 'marker':  ['fg', 'Keyword'],
  \ 'spinner': ['fg', 'Label'],
  \ 'header':  ['fg', 'Comment'] }

let g:fzf_commits_log_options = '--all --graph --abbrev-commit --date=local --date=short --color=always '
  \ . '--pretty=format:"%C(yellow)%h %C(cyan)%ad%C(auto)%d %Creset%s %C(blue)<%aN>"'
let $FZF_DEFAULT_COMMAND = 'fd --type file --color=always --hidden --exclude .git'
let $FZF_DEFAULT_OPTS = ' --ansi --hscroll-off=80 --multi'
let g:fzf_layout = { 'window': 'enew' }

command! -bang -nargs=* Fzf
  \ call fzf#run({
  \ 'source': 'fd --type file --color=always --hidden --exclude .git --exclude .yarn/cache',
  \ 'sink': 'e',
  \ 'options': ' --preview="bat --color=always {}" --preview-window=up:60%'
  \ })

command! -bang -nargs=* Rg
  \ call fzf#vim#grep(
  \   'rg --column --line-number --hidden -g "!.git/" -g "!.yarn/" --no-heading --pretty --smart-case --max-columns=160 '.shellescape(<q-args>), 1,
  \   <bang>0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%')
  \           : fzf#vim#with_preview('up:60%', '?'),
  \   <bang>0)

{'fraction_non_alphanumeric': 0.26724655068986203, 'fraction_numerical': 0.009298140371925615, 'mean_word_length': 2.984468339307049, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5950217', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1361, 'n_words': 291}