We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9afa25c commit 660c721Copy full SHA for 660c721
completions/xh.fish
@@ -1,3 +1,10 @@
1
+# Complete paths after @ in options:
2
+function __xh_complete_data
3
+ string match -qr '^(?<prefix>.*@)(?<path>.*)' -- (commandline -ct)
4
+ printf '%s\n' -- $prefix(__fish_complete_path $path)
5
+end
6
+complete -c xh -n 'string match -qr "@" -- (commandline -ct)' -kxa "(__xh_complete_data)"
7
+
8
complete -c xh -l raw -d 'Pass raw request data without extra processing' -r
9
complete -c xh -l pretty -d 'Controls output processing' -r -f -a "all\t'(default) Enable both coloring and formatting'
10
colors\t'Apply syntax highlighting to output'
0 commit comments