Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zathura conpletion for zsh broken
- X-seq: zsh-workers 43552
- From: Oliver Freyermuth <o.freyermuth@xxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: zathura conpletion for zsh broken
- Date: Tue, 25 Sep 2018 22:02:12 +0200
- Autocrypt: addr=o.freyermuth@xxxxxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsFNBFLcXs0BEACwmdPc7qrtqygq881dUnf0Jtqmb4Ox1c9IuipBXCB+xcL6frDiXMKFg8Kr RZT05KP6mgjecju2v86UfGxs5q9fuVAubNAP187H/LA6Ekn/gSUbkUsA07ZfegKE1tK+Hu4u XrBu8ANp7sU0ALdg13dpOfeMPADL57D+ty2dBktp1/7HR1SU8yLt//6y6rJdqslyIDgnCz7+ SwI00+BszeYmWnMk5bH6Xb/tNAS2jTPaiSVr5OmJVc5SpcfAPDr2EkHOvkDR3e0gvBEzZhIR fqeTxn4+LfvqkWs24+DmYG6+3SWn62v0xw8fxFjhGbToJkTjNCG2+RhpcFN8bwDDW7xXZONv BGab9BhRTaixkyiLI1HbqcKovXsW0FmI8+yW3vxrGUtZb4XFSr4Ad6uWmRoq2+mbE7QpYoyE JQvXzvMxHq5aThLh6aIE3HLunxM6QbbDLj9xhi7aKlikz5eLV5HRAuVcqhBAvh/bDWpG32CE SfQL0yrqMIVbdkDIB90PRcge7jbmGOxm8YVpsvcsSppUZ9Y8j/rju/HXUoqUJHbtcseQ7crg VDuIucLCS57p2CtZWUvTPcv1XJFiMIdfZVHVd2Ebo6ELNaRWgQt8DeN4KwXLHCrVjt0tINR9 zM/k0W26OMPLSD6+wlFDtAZUng2G8WfmsxvqAh8LtJvzhl2cBwARAQABzS9PbGl2ZXIgRnJl eWVybXV0aCA8by5mcmV5ZXJtdXRoQGdvb2dsZW1haWwuY29tPsLBfAQTAQIAJgIbAwcLCQgH AwIBBhUIAgkKCwQW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XPY+V KB7t2CoZv5xo0STm
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:references:cc:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/FZdZnISbUS1pdmJJYupwyDpy/1Q/235z9+h1/n25Lg=; b=NAXs1S9BmZ1OLuoxzuBcIMFnJMQifHYLQSQhYO3u5kUdWG6o31720cUp7QGF30/oRZ kKD6FtSH7y5hzSQRzp1tDO/5J+eYzcySr5MFKuuIhfVAG5SjRaFs+1xR2I8hSEXPuSvs dQmULdG/QDv5Q+16h0Q+VEqfOZdDRd5eP9COoUkfm+ASQgvGkJQOzmDdaTij4PNW56XZ JQY6lxFjJJsUd786qmD0FyUd+PtJah+Nos8jSKXMHMvE0mW7TVI9uZUbJdNeL8Vea6nC SCBdl01nd+aSievH35K4DP3AUDMCJFmbXwPS55LGAn1OL4mkD7MzlYFDbWVMW5PID81D l9aQ==
- In-reply-to: <20180925192153.uwitfgrd2yydxtah@tarpaulin.shahaf.local2>
- 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
- Openpgp: preference=signencrypt
- References: <057ea9a2-d934-59e6-3109-e5093f0f9878@googlemail.com> <20180925192153.uwitfgrd2yydxtah@tarpaulin.shahaf.local2>
Am 25.09.18 um 21:21 schrieb Daniel Shahaf:
> Oliver Freyermuth wrote on Tue, Sep 25, 2018 at 17:14:04 +0200:
>> +++ b/Completion/X/Command/_zathura
>> @@ -25,7 +25,7 @@ _zathura_files(){
>> elif [[ $pf =~ "poppler" ]]; then
>> supported_filetypes+="pdf"
>> else
>> - supported_filetypes+="${${pf%.so}#${plugins_dir}/lib}"
>> + supported_filetypes+="${${pf%.so}#${plugins_dir}/}"
>
> Isn't this equivalent to «supported_filetypes+=${pf:t:r}»?
Indeed, it is, and that would be much easier.
>
> The 'break' on line 12 looks odd. Does zathura really ignore
> /usr/lib/zathura/foo.so if /usr/local/lib/zathura/bar.so exists and
> /usr/local/lib/zathura/foo.so does not?
You are correct in spotting this, if I read the zathura code correctly (not a girara expert...),
it "does the right thing" and searches the full list of paths.
I'll try to cook up a patch fixing both those issues. Might take a while though, since
I'm just starting with this (basically I started to investigate after "zathura <tab>" stopped
doing anything after a zsh upgrade, makinɡ usage rather cumbersome).
Thanks for the pointers!
Oliver
>
> Thanks,
>
> Daniel
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author