marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.38k stars 148 forks source link

The plugin doesn't suggest shell functions #672

Closed ahmadiehsan closed 7 months ago

ahmadiehsan commented 11 months ago

Environment

typeset VENDOR=debian
typeset OSTYPE=linux-gnu
typeset ZSH_PATCHLEVEL=debian/5.8-6+deb11u1
typeset -a _autocomplete__funcfiletrace=(
  /tmp/zsh_repos/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /home/ea/.zshrc:1
  zsh:0
)
c7b6550 (grafted, HEAD -> main, origin/main, origin/HEAD) Add instructions on how to insert longest common prefix

Steps to reproduce

The .zshrc file content:

source /tmp/zsh_repos/zsh-autocomplete/zsh-autocomplete.plugin.zsh

alias my_custom_command1=""
function my_custom_command2() {}
my_custom_command3() {}

When I type my_custom_ the plugin only suggests my_custom_command1:

screenshot_20231217_182452

But it is expected to suggest my_custom_command1, my_custom_command2, and my_custom_command3

marlonrichert commented 10 months ago

That's a problem I hadn't considered. Thanks for reporting. This should be fixed.