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 73d8304 commit 7748282Copy full SHA for 7748282
completions/7z
@@ -95,6 +95,14 @@ _7z()
95
_count_args =
96
if [[ $args -eq 2 ]]; then
97
_filedir_xspec unzip
98
+ # TODO: parsing 7z i output?
99
+ # - how to figure out if the format is input or output?
100
+ # - find string Formats:, read until next empty line
101
+ # - extensions start from column 26
102
+ # - ignore everything in parens
103
+ # - terminate on two spaces
104
+ # - terminate on token containing anything [^a-z0-9]
105
+ # (assumption: extensions are all lowercase)
106
[[ $mode == w ]] &&
107
_filedir '@(7z|bz2|swf|?(g)tar|?(t)[bglx]z|tb?(z)2|wim)' ||
108
_filedir '@(7z|arj|bz2|cab|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|msi|pmd|[rx]ar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)'
0 commit comments