zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: complete :/ with other parameter operators
@ 2016-12-07  3:49 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2016-12-07  3:49 UTC (permalink / raw)
  To: Zsh workers

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'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-07  3:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-07  3:49 PATCH: complete :/ with other parameter operators Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).