Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve zsh completion parsing #202

Merged
merged 1 commit into from
Nov 12, 2020
Merged

Conversation

rpigott
Copy link
Contributor

@rpigott rpigott commented Nov 10, 2020

I noticed that my previous method for parsing keys from metadata output isn't quite sufficient. It actually fails on short player names that have more space padding.

So I changed the metadata parsing to be more robust, and I also corrected a typo so that __playerctl_ctx actually uses the declared player_opts array. The purpose of these is to give the user context specific suggestions for metadata keys based on the player/ignore opts they gave earlier in the command.

@acrisci
Copy link
Member

acrisci commented Nov 12, 2020

👍

@acrisci acrisci merged commit 890c224 into altdesktop:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants