oh-my-fish / oh-my-fish-legacy

Oh My Fish!
MIT License
13 stars 2 forks source link

autocomplete slowness #568

Closed bpinto closed 9 years ago

bpinto commented 9 years ago

When typing omf commands, sometimes the shell becomes "slow". I type some characters but it doesn't show on the shell.

Example omf in before I complete install, it is slow as if it was processing something. This seems to me a problem with autocomplete. Has anyone noticed a similar issue?

derekstavis commented 9 years ago

I'm experiencing the same issue. The first problem is that we do completion just after typing omf i:

complete -c omf -n "__omf.opt_is i install"       -a (printf "%s " (omf.list_db_packages))

So sometimes I see the prompt freeze for a second or so, before finishing typing install.

The second problem is that fish is computing the completions just after typing the subcommand, instead of just doing it when you request them (using TAB).

ghost commented 9 years ago

@bpinto I can't reproduce it here :confused:

bpinto commented 9 years ago

Luck you!! :)

I'll have to test it, but it does seem related to the short sub command names.

ghost commented 9 years ago

Mmm. If you manage to reproduce it let me know how it goes.

bpinto commented 9 years ago

Can't find anything... Closing then.