<commit_before>function insert_filepath --description 'Select/insert filepath into commandline'
    if not type 'fzf' >/dev/null 2>&1
        echo 'error: fzf not found'
        exit 1
    end
    fzf --header="insert filepath" -m -q (commandline -t) | read -z -l fzf_last_select
    if [ $fzf_last_select ]
        commandline -i (string split '\n' $fzf_last_select | string join ' ')
    end<commit_msg>fish: Add preview on insert_filepath<commit_after>function insert_filepath --description 'Select/insert filepath into commandline'
    if not type 'fzf' >/dev/null 2>&1
        echo 'error: fzf not found'
        exit 1
    end
    fzf --header="insert filepath" --preview="head {}" --preview-window=up:30% -m -q (commandline -t) | read -z -l fzf_last_select
    if [ $fzf_last_select ]
        commandline -i (string split '\n' $fzf_last_select | string join ' ')
    end
{'fraction_non_alphanumeric': 0.11630558722919042, 'fraction_numerical': 0.009122006841505131, 'mean_word_length': 2.902222222222222, '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': '6183125', 'n_tokens_mistral': 305, 'n_tokens_neox': 299, 'n_words': 91}