-
Notifications
You must be signed in to change notification settings - Fork 644
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
Add tab completion for in program commands #789
Conversation
mps_youtube/util.py
Outdated
'pls', 'mix', 'url', 'url_file', 'pl', 'rm', 'undump', 'dump', | ||
'sw', 'shuffle', 'reverse', 'repeat', 'suser', 'splaylist'] | ||
|
||
SET_COMMANDS = ['set order', 'set user_order', 'set max_results', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to iterate over config
to get this list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
mps_youtube/util.py
Outdated
@@ -24,6 +24,26 @@ | |||
|
|||
XYTuple = collections.namedtuple('XYTuple', 'width height max_results') | |||
|
|||
COMMANDS = ['play', 'set', 'album', 'all', 'playurl', 'browserplay', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awkward... I don't like the redundancy, but the current regex method makes it difficult to do anything else...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's an other way to do it.
@ids1024 Any other changes required? |
Merged. I don't like the list of of commands, but there isn't an easy solution. The I opened #801, related to this. |
how can I find out why tab completion not working on my configuration?
|
Closes #783.