<commit_before>" Project wide search
"""""""""""""""""""""""

" With silent output:
"   Use vim's standard `grep` function
"   Don't open the first result (`!`)
"   Then open the quickfixlist with result
command -nargs=* ProjSearch silent grep! <args> | copen

" Map Cmd-Shift-F to project wide search.
map <D-F> :ProjSearch<space>

" Use ripgrep over grep if its around
if executable('rg')
  set grepprg=rg\ --vimgrep
endif
<commit_msg>Bring back <CR> to clear file search :airplane:<commit_after>" Project wide search
"""""""""""""""""""""""

" With silent output:
"   Use vim's standard `grep` function
"   Don't open the first result (`!`)
"   Then open the quickfixlist with result
command -nargs=* ProjSearch silent grep! <args> | copen

" Map Cmd-Shift-F to project wide search.
map <D-F> :ProjSearch<space>

" Use ripgrep over grep if its around
if executable('rg')
  set grepprg=rg\ --vimgrep
endif

" File search
"""""""""""""
" Clear highlight
nnoremap <CR> :nohlsearch<CR>

" Restore <CR> functionality in other places
augroup enter_esc
    au!
    au BufReadPost quickfix nnoremap <buffer> <CR> <CR>
    au CmdWinEnter * nnoremap <buffer> <CR> <CR>
augroup END

{'fraction_non_alphanumeric': 0.14906303236797275, 'fraction_numerical': 0.0, 'mean_word_length': 4.389908256880734, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2309498', 'n_tokens_mistral': 419, 'n_tokens_neox': 404, 'n_words': 142}