Skip to content

Should kongplete enable default shell completions? #15

@chairmank

Description

@chairmank

I explored whether kongplete could be used to implement shell completion in https://github.com/jotaen/klog, and I discovered that the user experience was unsatisfactory because kongplete does not enable default shell completions for things like file paths. (See https://github.com/jotaen/klog/issues/177 for details.) This could be achieved by changing the commands in shellInstall map. For example, the change for bash would be from

"complete -C ${bin} ${cmd}\n"

to

"complete -o default -o bashdefault -C ${bin} ${cmd}\n"

It seems to me that this change would improve the usability of completions. Is there a reason why kongplete does not already do this?

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