Closed unera closed 8 months ago
The completion code has been written by many drive-by contributors, but there is no maintainer. If you want this fixed, submit a PR.
Half a year later, nobody was interested in fixing this bug. If this issue continues to exist, the completion scripts will be deleted.
Alternative solution might be removing MPC_FORMAT variable and implementing a config file, where default format output for commands like 'mpc playlist' could be specified.
UPD: There's a hacky solution - add alias mpc ="mpc -f %position%... etc" in .zshrc. It applies formatting to all mpc commands but does not break completions.
That's not a hacky solution - it's a solution. If you expect mpc to print a certain format, specify it explicitly instead of assuming that mpc uses its defaults. Do you want to submit a PR?
I don't know what exactly I should submit since I didn't change anything in mpc. What I did is:
unset MPC_FORMAT
~/.zshrc
#Use this instead setting $MPC_FORMAT becsuse the latter breaks completions
alias mpc="mpc -f '%position%. %Artist% %performer% - %title% (%Album% %date%)'"
source .zshrc
done
Oh, that you mean. I thought you had added -f
to the bash completion script. Because that would be the solution.
Unfortunately, the problem still persists for me with ZSH. Compinit is still broken. Falling back to using alias.
for example, I want to see the filename when I do
mpc status
(ormpc
) in a console, so I define in my zshrc the following line:Since then, I have found that completions for
mpc add
etc are thoroughly broken.