<commit_before># Changes the cursor to match current vi mode.

function zle-keymap-select zle-line-init
{
    # change cursor shape in iTerm2
    case $KEYMAP in
        vicmd)      print -n -- "\E]50;CursorShape=0\C-G";;  # block cursor
        viins|main) print -n -- "\E]50;CursorShape=1\C-G";;  # line cursor
    esac

    zle reset-prompt
    zle -R
}

function zle-line-finish
{
    print -n -- "\E]50;CursorShape=0\C-G"  # block cursor
}

zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select<commit_msg>Commented out the cursor changes.<commit_after># Changes the cursor to match current vi mode.
#
#function zle-keymap-select zle-line-init
#{
#    # change cursor shape in iTerm2
#    case $KEYMAP in
#        vicmd)      print -n -- "\E]50;CursorShape=0\C-G";;  # block cursor
#        viins|main) print -n -- "\E]50;CursorShape=1\C-G";;  # line cursor
#    esac
#
#    zle reset-prompt
#    zle -R
#}
#
#function zle-line-finish
#{
#    print -n -- "\E]50;CursorShape=0\C-G"  # block cursor
#}
#
#zle -N zle-line-init
#zle -N zle-line-finish
#zle -N zle-keymap-select
{'fraction_non_alphanumeric': 0.15004574565416284, 'fraction_numerical': 0.018298261665141813, 'mean_word_length': 2.551948051948052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4468653', 'n_tokens_mistral': 445, 'n_tokens_neox': 437, 'n_words': 109}