Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: complete :/ with other parameter operators
- X-seq: zsh-workers 40114
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: complete :/ with other parameter operators
- Date: Wed, 07 Dec 2016 04:49:22 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1481082563; bh=va8rI0pa4XMmA+eYEhxNG/JMpivS8QE4FTfo14DD79s=; h=From:To:Subject:Date:From:Subject; b=n3kScmaCJDSG0mAElRXhbxeSG7PpqKhiBuY6bEcWvTnlqtwW7EE+pV/39RdjYR9G3BVljYJdQmw73xAVKbckyb7DHdzqw2F3/ecGi5DuBBlo0b9c8yMAlckfgeq0SeO3HB7QXi5u8uNA+IWr9/bGKJqNogtevOYDFA6Ja3Ip3msW3KhhmDLcmtgka/Y/HFWe6Mo+402ndSsK7elAk7HTc7u3eee1ULGmZ153Fr63kheofABnLDiJ2ty0aVd7w2JKL6eGBJ9hdxDDIVhJI0P48atyFVHlUkNiw5Kownc0iBVlo+jZHUc8rfP0ZI1KdaXRie1Vv5qhKO1vW5MqLaJT0A==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
After ${param:<tab> we complete a number of operators. This should
include /. ${param:/pat/replace} is like ${param/pat/replace} but the
pattern is anchored to start and end of words.
Oliver
diff --git a/Completion/Zsh/Context/_brace_parameter b/Completion/Zsh/Context/_brace_parameter
index e77d4c58b..e4f5e6639 100644
--- a/Completion/Zsh/Context/_brace_parameter
+++ b/Completion/Zsh/Context/_brace_parameter
@@ -197,6 +197,7 @@ elif compset -P '*:'; then
'\:=:unconditionally assign value to parameter'
'?:print error if parameter is set and non-null'
'#:filter value matching pattern'
+ '/:replace whole word matching pattern'
'|:set difference'
'*:set intersection'
'^:zip arrays'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author