guys, slow initial shell completion using zsh. first <tab> press takes a lot of time but subsequent presses dont. any pointers?
sparklyballs joined the channel
pyroscope_ joined the channel
pyroscope has quit
pyroscope_ is now known as pyroscope
sparklyballs joined the channel
infides_afk joined the channel
theof
shreyansh_k: I don't know about zsh completion, but I guess it tries to load your config file and parse your enabled plugins to see what commands are supported
That could take some time. Once this is done command args/options completion is probably static
oldtopman has quit
infides_afk has quit
oldtopman joined the channel
oldtopman has quit
shreyansh_k
theof: Is it possible to do the parsing in the background and/or at the start of the terminal so that it doesn't block the terminal while parsing or during the first use?
theof
shreyansh_k: I can't tell. I have no exp with zsh scripting. If you feel adventurous, have a look at the file beets/extra/_beet and expriment :)
jrobeson has quit
jrobeson joined the channel
light2yellow joined the channel
Freso
shreyansh_k: I'm pretty sure it's possible, but you should ask in Zsh specific forums for how to. I doubt it's something that will be added by default since lots of users will not be using beets commands in most of their sessions, and parsing the beets config every time a zsh session is initiated will cause too much unneeded overhead.
Still, some (like you) might prefer that, so absolutely try and figure it out and maybe post about it on the beets forum? https://discourse.beets.io/