Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@oleorhagen
Copy link
Contributor

What type of PR is this?

  • [x ] bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

Aligns zsh auto-completion functionality with the bash auto-completion

Which issue(s) this PR fixes:

Special notes for your reviewer:

Testing

Tested manually

New functionality: https://asciinema.org/a/EAYRIEVGTGNSS2gCGwSJ4Zw1i

Old functionality: https://asciinema.org/a/BfOZz4BHUGwjXMFptbmDHZocH

Release Notes

(REQUIRED)

List files on tab with zsh auto-completion when no completion candidates are available.

This will simply list the files in the current directory if there are no
auto-completion options available.

With this change, the zsh auto-completion will align with the functionality in
the bash auto-completion file provided.

New functionality: https://asciinema.org/a/EAYRIEVGTGNSS2gCGwSJ4Zw1i

Old functionality: https://asciinema.org/a/BfOZz4BHUGwjXMFptbmDHZocH

Signed-off-by: Ole Petter <[email protected]>
@oleorhagen oleorhagen requested a review from a team as a code owner May 3, 2020 10:20
@oleorhagen oleorhagen requested review from asahasrabuddhe and coilysiren and removed request for a team May 3, 2020 10:20
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@coilysiren coilysiren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, although I would like if there was something akin to tests for this.

@coilysiren coilysiren merged commit 6102689 into urfave:master May 4, 2020
@oleorhagen
Copy link
Contributor Author

Looks fine, although I would like if there was something akin to tests for this.

Yup, some tests for the auto-completion features (both bash and zsh) would have been nice. But I didn't see any in place as of now. I wonder how much effort it would be to bootstrap?

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

Successfully merging this pull request may close these issues.

3 participants