Skip to content

completions: add xxd #10137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

completions: add xxd #10137

wants to merge 2 commits into from

Conversation

zgracem
Copy link
Contributor

@zgracem zgracem commented Dec 5, 2023

Description

Adds completions for xxd.

TODOs:

  • [N/A] Changes to fish usage are reflected in user documentation/manpages.
  • [N/A] Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

set -l xxd_exclusive_args b e i ps r

complete -c xxd -s a -d 'Toggle autoskip'
complete -c xxd -s b -n "__fish_complete_exclusives $xxd_exclusive_args" -d 'Binary digit dump'
Copy link
Member

Choose a reason for hiding this comment

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

What is __fish_complete_exclusives?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a custom completion helper that I forgot was custom, oops 😅 I'll inline it in the file.

krobelus pushed a commit that referenced this pull request Dec 30, 2023
@krobelus krobelus added this to the fish 3.7.0 milestone Dec 30, 2023
@krobelus krobelus closed this in 6fe4e3d Dec 30, 2023
@zgracem zgracem deleted the completions-xxd branch December 30, 2023 16:33
@zgracem zgracem restored the completions-xxd branch December 30, 2023 16:34
@zgracem zgracem deleted the completions-xxd branch December 30, 2023 16:35
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants