Skip to content

Improve bash completions - #212

Merged
scribu merged 5 commits into
masterfrom
completions-overhaul
Feb 10, 2014
Merged

scribu merged 5 commits into
masterfrom
completions-overhaul

Conversation

@scribu

@scribu scribu commented Feb 10, 2014

Copy link
Copy Markdown
Member

We already have tab completions for command and subcommand names.

Tasks:

@scribu

scribu commented Feb 28, 2013

Copy link
Copy Markdown
Member Author

Instead of returning a static list of subcommands, we could make wp --completions generate bash code, which gets evaled.

This would allow subcommands that have <file> in their synopsis to use compgen -f, like in d11071a.

@scribu

scribu commented Feb 9, 2014

Copy link
Copy Markdown
Member Author

With arbitrary command nesting now possible, bash completions are really due for an overhaul.

@scribu scribu added this to the next milestone Feb 9, 2014
scribu pushed a commit that referenced this pull request Feb 10, 2014
Improve bash completions

fixes #547
fixes #994
@scribu
scribu merged commit b8e7a6a into master Feb 10, 2014
@scribu
scribu deleted the completions-overhaul branch February 10, 2014 03:03
@scribu scribu mentioned this pull request Apr 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tab completion on <file> tab completion: add '=' or ' ' after associative arguments

2 participants