<commit_before># Fish-like fast/unobtrusive autosuggestions.
#
#     https://github.com/tarruda/zsh-autosuggestions
#
# Install using:
#     git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh/plugins/zsh-autosuggestions
#
# Notes:
#    - <TAB> in 'predict-on' accepts the entire prediction <TAB> in
#    - 'autosuggestions' accepts the first unambiguous prediction (usually up to
#      the first directory separator). This behaviour is preferred as it offers
#      better integration with TAB-completion (word-oriented behaviour rather
#      than line-oriented behaviour).
#
if [ -d $AUTOSUGGESTIONS ]; then
    source "${AUTOSUGGESTIONS}/autosuggestions.zsh"

    # Enable autosuggestions automatically.
    zle-line-init() {
        zle autosuggest-start
    }
    zle -N zle-line-init

    # Customise autosuggest syntax highlighting.
    AUTOSUGGESTION_HIGHLIGHT_CURSOR=1
    AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=black,underline'

    # Allow suggestions to be accepted mid-line.
    bindkey '^J' autosuggest-execute-suggestion

    # Allow autosuggest to be toggled on/off (make function verbose so the
    # autosuggestion's state is known).
    verbose-autosuggest-toggle() {
	if [[ -n $ZLE_AUTOSUGGESTING ]]; then
	    autosuggest-pause
	    zle -A autosuggest-self-insert-orig self-insert
            # [[ -o zle ]] && zle -I
            # print "$fg[red]autosuggest OFF"
            zle -M "autosuggest OFF"
	else
	    autosuggest-resume
            # [[ -o zle ]] && zle -I
            # print "$fg[green]autosuggest ON"
            zle -M "autosuggest ON"
	fi
    }
    zle -N verbose-autosuggest-toggle
    bindkey '^Z' verbose-autosuggest-toggle
fi<commit_msg>autosuggestion: Updated loading for newer package<commit_after># Fish-like fast/unobtrusive autosuggestions.
#
#     https://github.com/tarruda/zsh-autosuggestions
#
# Install using:
#     git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh/plugins/zsh-autosuggestions
#
# Notes:
#    - <TAB> in 'predict-on' accepts the entire prediction <TAB> in
#    - 'autosuggestions' accepts the first unambiguous prediction (usually up to
#      the first directory separator). This behaviour is preferred as it offers
#      better integration with TAB-completion (word-oriented behaviour rather
#      than line-oriented behaviour).
#
if [ -d $AUTOSUGGESTIONS ]; then
    source "${AUTOSUGGESTIONS}/zsh-autosuggestions.zsh"

    # Customise autosuggest syntax highlighting.
    ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=black,underline'

    # Allow suggestions to be accepted mid-line.
    bindkey '^J' autosuggest-execute
fi
{'fraction_non_alphanumeric': 0.10084355828220859, 'fraction_numerical': 0.0003834355828220859, 'mean_word_length': 3.2148626817447497, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4909616', 'n_tokens_mistral': 869, 'n_tokens_neox': 832, 'n_words': 214}