From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: PATCH: _xloadimage
Date: Thu, 17 Oct 2002 09:42:07 +0100 [thread overview]
Message-ID: <E1826EJ-0003AU-00@bimbo.logica.co.uk> (raw)
Without an rc file for xli/xloadimage, no file extensions are found so
file completion wasn't working. This patch makes it use a default set of
extensions.
Index: _xloadimage
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_xloadimage,v
retrieving revision 1.2
diff -u -r1.2 _xloadimage
--- _xloadimage 16 Jan 2002 16:29:52 -0000 1.2
+++ _xloadimage 17 Oct 2002 08:38:20 -0000
@@ -33,8 +33,13 @@
'*-global[following option applies to all images]'
)
fi
-ipath=( . ${=rc[1]#*:} )
-extension=( ${=rc[2]#*:} )
+ipath=( . ${=${(M)rc:#*path:*}#*:} )
+extension=( ${=${(M)rc:#*extensions:*}#*:} )
+# set default file extensions if there are none
+(( $#extension )) || extension=(
+ .gif .jpg .jpeg .png .rle .csun .msun .sun .face
+ .xbm .bm .fbm .pcx .ppm .pgm .pbm .tga .xpm
+)
# all options are valid after -help so no exclusion lists below
_x_arguments "$args[@]" \
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
reply other threads:[~2002-10-17 8:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1826EJ-0003AU-00@bimbo.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).