<commit_before>if [[ ! -o interactive ]]; then
    return
fi

compctl -K _jenv jenv

_jenv() {
  local words completions
  read -cA words

  if [ "${#words[@]}" -eq 2 ]; then
    completions="$(jenv commands)"
  else
    completions="$(jenv completions ${words[2,-1]})"
  fi

  reply=("${(ps:\n:)completions}")
}
<commit_msg>Fixes #193 ZSH completion do not add the space anymore<commit_after>if [[ ! -o interactive ]]; then
    return
fi

compctl -S "" -K _jenv jenv

_jenv() {
  local words completions
  read -cA words

  if [ "${#words[@]}" -eq 2 ]; then
    completions="$(jenv commands)"
  else
    completions="$(jenv completions ${words[2,-1]})"
  fi

  reply=("${(ps:\n:)completions}")
}

{'fraction_non_alphanumeric': 0.18077474892395984, 'fraction_numerical': 0.01291248206599713, 'mean_word_length': 3.503225806451613, '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': '5790377', 'n_tokens_mistral': 268, 'n_tokens_neox': 251, 'n_words': 70}