Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Add completion for zathura.
- X-seq: zsh-workers 43125
- From: dana <dana@xxxxxxx>
- To: Doron Behar <doron.behar@xxxxxxxxx>
- Subject: Re: [PATCH] Add completion for zathura.
- Date: Sun, 1 Jul 2018 14:06:57 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1J92zjmqXud2MKC0RnuEJ/fiIF9wZOk9sQURzVsG2lQ=; b=kdG6r4TZHmq/bMPjCPVHQ+Qs0xga31feWi9jWZwEE0QHntFKnwdb6IosjAqfWr+t7F YSXwqh8VqrOV0pzzMTXx+360lVlo+xAsWa297YPjLIVoTS/YCQAxqyRhRAiM1dwRgPch ZlnKVFctypc1UVXE0DHYifF5b1cTXbf7MaBSwXsfHigkZOho0LR/2ec811jrGJ3PZA+u sK+pA8UDq1rSfrK3Teh8kqrqUxb3X0DDY5iitUjIYLmSg26XtlGMTVg5qDvu+A2u1UxN S0JhQ1y45IqJI71gE52pxC4W426pUYJVrxaS6DT71/zQrL0Tifx5DwPzvzgwlfirzSyc bxtQ==
- In-reply-to: <20180701171158.6uzs27ooafm4pk42@NUC.doronbehar.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180613163152.28843-1-doron.behar@gmail.com> <20180701171158.6uzs27ooafm4pk42@NUC.doronbehar.com>
On 1 Jul 2018, at 12:11, Doron Behar <doron.behar@xxxxxxxxx> wrote:
>Hey guys, just reminding you there's a patch here ready for your
>comments / merge.
Some things i noticed (disregard anything that's too nit-picky i guess):
On 13 Jun 2018, at 11:31, doron.behar@xxxxxxxxx wrote:
>+_zathura_files(){
* I don't think you want to quote the variables in your for loop; whenever
they're empty, you'll be looking for files matching /*.so
* However, you maybe *do* want to apply (Q) to the opt_args values, since
they're taken 'raw' from the command line, and quoting file paths is a very
common thing that people do
* Is the first check really supposed to be [[ -z $plugin_files ]] rather than
-n? It seems like it's going to immediately break out of the loop unless
_arguments found -p (or there are random shared libs in /)
* Should /usr/lib have precedence over /usr/local/lib? It's not typical
* plugins_dir and pf need made local
On 13 Jun 2018, at 11:31, doron.behar@xxxxxxxxx wrote:
>+_arguments \
* I think this could use -s and -S
* Since Zathura uses GLib's dumb option parser, i think (?) it's right that
these are given in -o,--opt= form rather than the usual -o+,--opt=. Might want
to make a note tho; i always double-take when i see that personally
* The descriptions for the options are inconsistently worded (some are verb
phrases, some use the indicative mood, some are just describing the argument)
and they don't conform to the usual capitalisation conventions
* Some of the optarg descriptions aren't that helpful ('number')
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author