Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zathura conpletion for zsh broken
- X-seq: zsh-workers 43544
- From: Oliver Freyermuth <o.freyermuth@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zathura conpletion for zsh broken
- Date: Tue, 25 Sep 2018 17:14:04 +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 AwIBBhUIAgkKCwQWAgMBAh4BAheABQJTHH5/AhkBAAo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im-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent :mime-version:content-language; bh=QpsTl5XUeXfzaDds36mCl/5gszzU8M6kh6QNwpw0pss=; b=W4UgMwWdTyj7FvoZoijBWBodknOb3JKYqnysdwxh6p/LjBrBpJSbqTR/p0PUtExe3n cm/doGPYpY8OkkaaFPps3Ihv9E5SXEKxkgphSGix5jeyzr96lHOtx4mWJExE12HSetRb MTkdctHGax5Gb8poPuTEkR2lzsHPR9jYJbLk7URPwHYUSJbizunbIlgVObJ2P/aapYJs i4OE+krTWghBTeKqB96Zi7SryJ6wLSJJj2zh4GxjOOGujGJTFetElq11i3cNkRzJevrb knQXaVo1KPW7DbhpQ/8ngPmKJgISBQpbVUM0k9gKXaeDhWpnIX9AZG4tqULbslGiV/Aa DmNA==
- 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
Hi,
the zathura completion which was recently added breaks for me. I have:
-----------------------------
$ ls -1 /usr/lib/zathura/*
/usr/lib/zathura/cb.so
/usr/lib/zathura/djvu.so
/usr/lib/zathura/pdf.so
/usr/lib/zathura/ps.so
-----------------------------
The completion code fails to strip the plugin_path correctly in case the plugin is neither called poppler nor mupdf.
The attached patch fixes the situation for me.
I am not subscribed to list, please include me in replies.
Cheers,
Oliver
From 5959af248d0574f27612485f43b8064247cb7b6e Mon Sep 17 00:00:00 2001
From: Oliver Freyermuth <o.freyermuth@xxxxxxxxxxxxxx>
Date: Tue, 25 Sep 2018 17:08:14 +0200
Subject: [PATCH] Fix zathura completion supported_filetypes.
---
Completion/X/Command/_zathura | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/X/Command/_zathura b/Completion/X/Command/_zathura
index 141cadf63..cc07828b3 100644
--- a/Completion/X/Command/_zathura
+++ 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}/}"
fi
done
_files -g "*.(${(j.|.)supported_filetypes})(-.)"
--
2.16.4
Messages sorted by:
Reverse Date,
Date,
Thread,
Author