Skip to content
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

Completions for fish shell #223

Open
carneeki opened this issue Jun 12, 2024 · 1 comment
Open

Completions for fish shell #223

carneeki opened this issue Jun 12, 2024 · 1 comment

Comments

@carneeki
Copy link

I've written a completions file that can be dropped into ~/.config/fish/completions/hexyl.fish, or /usr/share/fish/completions or /usr/share/fish/vendor_completions.d if @sharkdp wants to include it with hexyl.

complete -c hexyl -s n -s c -l length -l bytes -f -r -d 'Only read N bytes from the input'
complete -c hexyl -s s -l skip -f -d 'Skip the first N bytes of the input'
complete -c hexyl -l block-size -f -d 'Sets the size of the block unit to SIZE'
complete -c hexyl -s v -l no-squeezing -d 'Displays all input data'
complete -c hexyl -l color -f -r -a 'always auto never force' -d 'When to use colours'
complete -c hexyl -l border -f -r -a 'unicode ascii none' -d 'Whether to draw a border with unicode, ascii or none at all'
complete -c hexyl -s p -l plain -f -d 'Display output with --no-characters, --no-position, --border=none, and --color=never'
complete -c hexyl -s C -l characters -d 'Show the character panel on the right. This is the default'
complete -c hexyl -l character-table -f -a 'default ascii codepage-437' -d 'Choose character table encoding, default is ascii'
complete -c hexyl -s P -l position -f -d 'Whether to display the position panel on the left'
complete -c hexyl -s o -l display-offset -f -r -d 'Add N bytes to the displayed file position'
complete -c hexyl -l panels -f -r -d 'Set the number of hex data panels to be displayed'
complete -c hexyl -s g -l group-size -f -r -a '1 2 4 8' -d 'Number of bytes/octets that should be grouped together'
complete -c hexyl -l endianness -f -r -a 'big little' -d 'Whether to print out groups in little-endian or big-endian format'
complete -c hexyl -s b -l base -f -r -a 'binary octal decimal hexadecimal' -d 'Sets the base, default is hexadecimal'
complete -c hexyl -l terminal-width -f -r -d 'Sets the number of terminal columns to be displayed'
complete -c hexyl -s h -l help -d 'Print help'
complete -c hexyl -s v -l version -d 'Print version'
@sharkdp
Copy link
Owner

sharkdp commented Jun 22, 2024

Thank you. What about #155/#214?

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

No branches or pull requests

2 participants