zsh-users / zsh-completions

Additional completion definitions for Zsh.
Other
6.87k stars 712 forks source link

Fix nftables completion: when object name contains its type name #1088

Closed Mumumu4 closed 2 months ago

Mumumu4 commented 2 months ago

Fix nftables completion: when object name contains its type name, the completion may mass up

E.g.

table inet foo {
        chain my_chain {
                jump my_chain2
        }
        chain my_chain2 {
        }
}

nft delete chain inet foo <tab> get

handle                          -- address chain by handle
my_chain2                       -- (handle 31)
my_chain                        -- (handle 30)
\t\tjump my_chain2 # handle 33

the last line in the completion output is not wanted.