Skip to content

Autocomplete multiple files zsh #136

Description

@hatch01

Using zsh completion generated by clap, we can't autocomplete more than one file.
I tried the simple patch to add num_args = 1.. to the targets arg, but this was not enough, as in clap_complete we seem to also need subcommand to have * cardinality (https://github.com/clap-rs/clap/blob/20aac9d46e0852292bd43d845b6d9cb69c598c9e/clap_complete/src/aot/shells/zsh.rs#L640)

Expected behavior:

  • type rip
  • tab complete files
  • tab complete nother files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions