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

Minimal filename completions for the unimplemented subcommands #14

Open
cgjosephlee opened this issue Sep 26, 2018 · 2 comments
Open

Minimal filename completions for the unimplemented subcommands #14

cgjosephlee opened this issue Sep 26, 2018 · 2 comments

Comments

@cgjosephlee
Copy link
Contributor

cgjosephlee commented Sep 26, 2018

For tools like bedtools, there are too many subcommands and not everyone is implemented for completion. Also most of them are not frequently used and maybe change by time.

Can we have a minimal filename completes when a subcommand is not defined or newly added? Just like default behavior without completion script.

e.g. bedtools maskfasta and samtools fastq

@kloetzl
Copy link
Owner

kloetzl commented Sep 26, 2018

Is there a way to do both? Print a warning and file completion at the same time?

@cgjosephlee
Copy link
Contributor Author

https://github.com/kloetzl/biozsh/blob/master/completions/_samtools#L271-L273
Maybe be add _arguments '*:files:_files' here?
It works like

But I'm not sure if this is a clever way to do this.

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

No branches or pull requests

2 participants