<commit_before>zmodload zsh/terminfo

zle -N select-from-cd-stack
select-from-cd-stack() {
  LBUFFER=$LBUFFER"~+"
  zle menu-complete
  if [[ ${LBUFFER[-2,-1]} = "~+" ]]; then
    LBUFFER=${LBUFFER[1,-3]}
  fi
}
#[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" history-beginning-search-backward-end
#[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" history-beginning-search-forward-end

if [[ "$OSTYPE" == darwin* ]]; then
  bindkey "[5D" backward-word
  bindkey "[5C" forward-word
  bindkey -s '¬' '\eqls\n'
  bindkey '∂' select-from-cd-stack
  bindkey "≤" copy-prev-shell-word
else
#  bindkey "\C-${terminfo[kcub1]}" backward-word
#  bindkey "\C-${terminfo[kcuf2]}" forward-word
  # tmux
  bindkey "[D" backward-word
  bindkey "[C" forward-word

  bindkey -s '\el' '\eqls\n'
  bindkey '\ed' select-from-cd-stack
  bindkey "\e," copy-prev-shell-word
# red hat's gnome terminal
  bindkey '\eOH'    beginning-of-line
  bindkey '\eOF'    end-of-line
fi
# xfce4-terminal and iterm
bindkey "[1;5D" backward-word
bindkey "[1;5C" forward-word

# history search with globs
bindkey "\C-R" history-incremental-pattern-search-backward
bindkey "\C-S" history-incremental-pattern-search-forward

autoload -U url-quote-magic
zle -N self-insert url-quote-magic
<commit_msg>added iterm zsh binds<commit_after>zmodload zsh/terminfo

zle -N select-from-cd-stack
select-from-cd-stack() {
  LBUFFER=$LBUFFER"~+"
  zle menu-complete
  if [[ ${LBUFFER[-2,-1]} = "~+" ]]; then
    LBUFFER=${LBUFFER[1,-3]}
  fi
}
#[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" history-beginning-search-backward-end
#[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" history-beginning-search-forward-end

if [[ "$OSTYPE" == darwin* ]]; then
  bindkey "[5D" backward-word
  bindkey "[5C" forward-word
  bindkey -s '¬' '\eqls\n'
  bindkey '∂' select-from-cd-stack
  bindkey "≤" copy-prev-shell-word
else
#  bindkey "\C-${terminfo[kcub1]}" backward-word
#  bindkey "\C-${terminfo[kcuf2]}" forward-word
  bindkey -s '\el' '\eqls\n'
  bindkey '\ed' select-from-cd-stack
  bindkey "\e," copy-prev-shell-word
# red hat's gnome terminal
  bindkey '\eOH'    beginning-of-line
  bindkey '\eOF'    end-of-line
fi
# xfce4-terminal
bindkey "[1;5D" backward-word
bindkey "[1;5C" forward-word
# tmux and iterm
bindkey "[D" backward-word
bindkey "[C" forward-word

# history search with globs
bindkey "\C-R" history-incremental-pattern-search-backward
bindkey "\C-S" history-incremental-pattern-search-forward

autoload -U url-quote-magic
zle -N self-insert url-quote-magic

{'fraction_non_alphanumeric': 0.1937524713325425, 'fraction_numerical': 0.010280743376828785, 'mean_word_length': 3.9317738791423, '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': '5849444', 'n_tokens_mistral': 1027, 'n_tokens_neox': 996, 'n_words': 201}