kloetzl / biozsh

the z in bioinformatics
MIT License
33 stars 5 forks source link

Minimal filename completions for the unimplemented subcommands #14

Open cgjosephlee opened 5 years ago

cgjosephlee commented 5 years ago

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 commented 5 years ago

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

cgjosephlee commented 5 years ago

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.