Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Tab completion concatenating template name to end of ID on zsh #62

Open
sanfrancrisko opened this issue May 25, 2021 · 1 comment
Open
Labels
bug Something isn't working

Comments

@sanfrancrisko
Copy link

Environment

OS: macOS 11.3.1
Terminal: Native macOS Terminal App (2.11 (440))
Shell: zsh 5.7.1 (x86_64-apple-darwin18.2.0)

Issue Details

When tabbing out for completion of a template name, if there is only one option available, the tab completion appends the template's name (i.e. human readable name) to the end, on top on the id.

autocomplete_templ_name_included.gif

Steps to Reproduce

  • Build the pct experimental binary
  • Run pct new puppet-c [TAB]

Notes

  • This does not occur if there are multiple template IDs available for tab completion (e.g. pct new p [TAB])
@sanfrancrisko sanfrancrisko added the bug Something isn't working label May 25, 2021
@sanfrancrisko sanfrancrisko added this to the PCT LA Release milestone May 25, 2021
@sanfrancrisko sanfrancrisko changed the title Tab completion Tab completion concatenating template name to end of ID on zsh May 25, 2021
@jpogran jpogran removed this from the PCT LA Release milestone May 25, 2021
@da-ar
Copy link

da-ar commented Jun 1, 2021

This looks like it may be a bug in Cobra: spf13/cobra#1211 and will be fixed in an upcoming release spf13/cobra#1388

@da-ar da-ar self-assigned this Jun 1, 2021
@da-ar da-ar removed their assignment Jun 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants