zathura issueshttps://git.pwmt.org/pwmt/zathura/-/issues2023-02-03T12:11:18+01:00https://git.pwmt.org/pwmt/zathura/-/issues/332Search wrap broken for specific document2023-02-03T12:11:18+01:00Marcel RobitailleSearch wrap broken for specific documentSearch wrap is not working for one of my documents. That is, I search for something in the document by pressing `/`, then I press `n` until I get to the last result. After I get to the last result, no matter how many times I press `n`, I...Search wrap is not working for one of my documents. That is, I search for something in the document by pressing `/`, then I press `n` until I get to the last result. After I get to the last result, no matter how many times I press `n`, I can't get back to the top. I can't even press `N` to go to the previous result. Moving to the top of the document and pressing `n` doesn't bring me to any result either. It's like the search was cleared.
Search wrap works as expected for other documents.
I am using zathura 0.4.9.
Here is the problematic PDF: https://www.waveshare.com/w/upload/f/f6/E-Paper-IT8951-Driver-HAT-Schematic.pdf. The word I am searching for is `vusb5`.https://git.pwmt.org/pwmt/zathura/-/issues/331weird epub display code indent2023-02-12T08:40:06+01:00h leftweird epub display code indent![zathurashow](/uploads/350422b0e6f4d49facf880684429c51e/zathurashow.png)
![zathurashow2](/uploads/cb89ff0dbb780a71d68a309625b8f5b6/zathurashow2.png)
first is browser, second is calibre, third is zathura
zathura always show wired inde...![zathurashow](/uploads/350422b0e6f4d49facf880684429c51e/zathurashow.png)
![zathurashow2](/uploads/cb89ff0dbb780a71d68a309625b8f5b6/zathurashow2.png)
first is browser, second is calibre, third is zathura
zathura always show wired indent
```
❯ zathura --version
zathura 0.5.2
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.4.0) (/usr/lib/zathura/libpdf-mupdf.so)
(plugin) djvu (0.2.9) (/usr/lib/zathura/libdjvu.so)
(plugin) cb (0.1.10) (/usr/lib/zathura/libcb.so)
(plugin) ps (0.2.7) (/usr/lib/zathura/libps.so)
```https://git.pwmt.org/pwmt/zathura/-/issues/330[feature request] change epub css style2023-03-22T13:43:08+01:00Avid Seeker[feature request] change epub css styleWould be convenient to have zathura read from user-defined css files to adjust how epub is displayed.
Many epub viewers have these defined css as "sepia, dark, white" styles with settings for changing padding, margins, fonts, etc.
I kn...Would be convenient to have zathura read from user-defined css files to adjust how epub is displayed.
Many epub viewers have these defined css as "sepia, dark, white" styles with settings for changing padding, margins, fonts, etc.
I know about `set recolor` and `set font`, but what about margins and other capabilities HTML has like highlighting, colors etc...https://git.pwmt.org/pwmt/zathura/-/issues/329Cannot launch flatpak apps when sandbox set to normal2023-01-25T18:20:24+01:00Ricardo CCannot launch flatpak apps when sandbox set to normalThe documentation states that `No feature regressions are expected when using normal sandbox mode`, but this is innacurate as launching programs (through `:exec`, or, more importantly, when opening links) that use `flatpak` does not work...The documentation states that `No feature regressions are expected when using normal sandbox mode`, but this is innacurate as launching programs (through `:exec`, or, more importantly, when opening links) that use `flatpak` does not work if not using `set sandbox none`.
I'm not sure if disabling sandboxing for launching external programs is a good idea (maybe have that as another setting?), but I believe that this should at least be documented, if at least to save someone else's time.https://git.pwmt.org/pwmt/zathura/-/issues/328"$PAGE" string in file name get replaced with the page number in `:exec` command2023-12-08T18:42:50+01:00user202729"$PAGE" string in file name get replaced with the page number in `:exec` commandAs mentioned in the title, if some file has name for example `1$PAGE3.pdf` then `exec some-command $FILE` will pass `123.pdf` to `some-command`.
Side note, I think the issue is with https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathu...As mentioned in the title, if some file has name for example `1$PAGE3.pdf` then `exec some-command $FILE` will pass `123.pdf` to `some-command`.
Side note, I think the issue is with https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/commands.c#L559 which replaces `$FILE` before replacing `$PAGE`. Reversing the replacement order would fix the issue.https://git.pwmt.org/pwmt/zathura/-/issues/327IRC for discussions and questions2023-01-13T22:47:49+01:00Abu AlqayyimIRC for discussions and questionsI have many questions regarding the codebase; I'm trying to understand the Zathura codebase as I want to add some features to it, though some parts of the code I need help understanding.
Is there an IRC or a live chat where Zathura contr...I have many questions regarding the codebase; I'm trying to understand the Zathura codebase as I want to add some features to it, though some parts of the code I need help understanding.
Is there an IRC or a live chat where Zathura contributors may chat and provide help regarding the codebase?https://git.pwmt.org/pwmt/zathura/-/issues/326zathura ... can't find plugin?2023-01-05T22:16:20+01:00ArchieLinuxzathura ... can't find plugin?Greetings! This is likely a simple issue but I can't seem to figure it out. Perhaps someone here can shed some light?
Context: On my Arch/EndeavourOS/i3 setup, I'm trying to run `zathura` for previewing pdf files within `nnn` (as a plug...Greetings! This is likely a simple issue but I can't seem to figure it out. Perhaps someone here can shed some light?
Context: On my Arch/EndeavourOS/i3 setup, I'm trying to run `zathura` for previewing pdf files within `nnn` (as a plugin related to `preview-tabbed`)
After confirming all dependencies have been installed, I do get a `zathura` preview window that opens next to my `nnn` window (from which I called it while a pdf file is highlighted). But it's empty - except for a header that says "**org.pwmt.zathura"** and a footer than says "**[No name]**"
So finally I try to run to run `zathura` directly from my bash CLI with a pdf file as the argument and this what follows are the errors I get in response:
```
error: Found no plugins. Please install at least one plugin.
error: Could not determine file type.
```
I've looked through the man `zathura` and man `zathurarc` (which I don't have yet, so perhaps that's the problem?) and don't see an obvious problem to be addressed. What plugins do I need to install (perhaps within `usr/lib/zathura` directory - which is currently empty)?
I thought `zathura` WAS the plugin (for `preview-tabbed` within `nnn`).
Any tips to resolve this would be welcomed!https://git.pwmt.org/pwmt/zathura/-/issues/325GIO error for filenames with a colon2023-09-13T23:52:25+02:00David SchweinGIO error for filenames with a colonIt appears that zathura is unable to open filenames containing a colon. To replicate the problem, download a pdf file, check that zathura can open it, then rename it to a string containing ":", and check that zathura will not open the re...It appears that zathura is unable to open filenames containing a colon. To replicate the problem, download a pdf file, check that zathura can open it, then rename it to a string containing ":", and check that zathura will not open the renamed file.
At least one other pdf viewer (Evince) appears to have the same problem. The problem seems to come from the syntax for locations in the GIO tool, which uses a colon.https://git.pwmt.org/pwmt/zathura/-/issues/324strict sandbox mode blocks required syscalls2023-01-20T10:23:12+01:00Lambda Calculusstrict sandbox mode blocks required syscallsStrict sandbox mode disallows the syscalls `gettimeofday` and `clock_gettime`, which seem to be necessary during startup (doing `:set sandbox strict` after starting works fine), at least on my end. This also causes the AUR package `zathu...Strict sandbox mode disallows the syscalls `gettimeofday` and `clock_gettime`, which seem to be necessary during startup (doing `:set sandbox strict` after starting works fine), at least on my end. This also causes the AUR package `zathura-git` to fail installation as `ninja test` fails at the sandbox unit test.
Here is the relevant `ninja test` log bit:
```
$ ninja test
[0/1] Running all tests.
1/6 validate-desktop OK 0.02s
2/6 utils OK 0.02s
3/6 document OK 0.03s
4/6 types OK 0.02s
5/6 sandbox FAIL 0.21s exit status 1
>>> MALLOC_PERTURB_=176 /home/lambda/src/repos/zathura/build/tests/test_sandbox
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
Running suite(s): Sandbox
0%: Checks: 1, Failures: 0, Errors: 1
../tests/test_sandbox.c:11:E:basic:test_create:0: (after this point) Received signal 31 (Bad system call)
[...]
```
And relevant `strace` logs (obtained by using `set sandbox strict` in `zathurarc`. the second one was obtained after unblocking the first syscall):
```
$ strace ./zathura -c .
[...]
seccomp(SECCOMP_SET_MODE_FILTER, 0, 0x55b1a37840f0) = 0
futex(0x7f16b014b0b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f16b014b0b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f16b014b0b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettimeofday(0x7ffc57ab2020, NULL) = 96
+++ killed by SIGSYS +++
fish: Job 1, 'strace ./zathura -c .' terminated by signal SIGSYS (Bad system call)
```
```
$ strace ./zathura -c .
[...]
futex(0x7f71259b30b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x55588d69f340, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f71256f9ba0, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x7f71256f9ba0, FUTEX_WAKE_PRIVATE, 1) = 0
clock_gettime(CLOCK_MONOTONIC, 0x7ffe498ba660) = 228
+++ killed by SIGSYS +++
fish: Job 1, 'strace ./zathura -c .' terminated by signal SIGSYS (Bad system call)
```
I'll submit a pull request allowing the two syscalls shortly.https://git.pwmt.org/pwmt/zathura/-/issues/323Navigating to any page from index mode jumps to the bottom of the last page2023-09-14T00:14:03+02:00Mikhail TimofeevNavigating to any page from index mode jumps to the bottom of the last pagein some pdf files, press tab, choose any page, press enter. Jumps to the bottom of the last page.
*Solved my problem but there's still a bug
I am on Artix linux with zathura version 0.5.1-1
The problem was in pdf backend. I believe it...in some pdf files, press tab, choose any page, press enter. Jumps to the bottom of the last page.
*Solved my problem but there's still a bug
I am on Artix linux with zathura version 0.5.1-1
The problem was in pdf backend. I believe it's a bug of zathura-pdf-mupdf backend, I installed poppler backend and problem was fixed.
Though there's no package for poppler backend in artix repositories, so I downloaded it from mirror here
https://archlinux.org/packages/community/x86_64/zathura-pdf-poppler/
and installed with
$ sudo pacman -U packagename.pkg.tar.zst
Also this was Desktop Environment independent. The bug was found in i3-gaps and I replicated it in xfce4
example pdf:
https://drive.google.com/file/d/1fBfGGC9CZrMwd1gwCiS1paYReqv_ZpVC/view?usp=drivesdkhttps://git.pwmt.org/pwmt/zathura/-/issues/322Highlight color bad contrast2022-12-22T21:17:39+01:00François BechetHighlight color bad contrastI can't get a great combination of colors for the highlighted elements during a document search, the contrast between the foreground text color and the background highlight color is always too bad.
`highlight-fg` and highlight-transparen...I can't get a great combination of colors for the highlighted elements during a document search, the contrast between the foreground text color and the background highlight color is always too bad.
`highlight-fg` and highlight-transparency don't go well together, I think that there should at least be an option to disable the `highlight-fg`, so only an `highlight-color` is applied like the in the Firefox PDF viewer.
The other alternative would be to disable the transparency and allow highlighted elements colors to look like in Linux man pages, but I guess there are obviously technical implications that make this impossible.https://git.pwmt.org/pwmt/zathura/-/issues/321Large PDF (ARMv8 reference manual) renders black pages with mupdf backend2023-04-29T18:13:18+02:00Drew DeVaultLarge PDF (ARMv8 reference manual) renders black pages with mupdf backendYou may acquire this PDF (12,000 pages) here:
https://developer.arm.com/documentation/ddi0487/latestYou may acquire this PDF (12,000 pages) here:
https://developer.arm.com/documentation/ddi0487/latesthttps://git.pwmt.org/pwmt/zathura/-/issues/320Special characters in table of contents2023-03-23T13:31:57+01:00Martin CSpecial characters in table of contentsI have a (latex-created) pdf with table of contents, and one entry contains an apostrophe. In zathuras TOC it is replaced by `'`.
I created a pdf with libreoffice, with a section name containing an apostrophe and ampersand. The apo...I have a (latex-created) pdf with table of contents, and one entry contains an apostrophe. In zathuras TOC it is replaced by `'`.
I created a pdf with libreoffice, with a section name containing an apostrophe and ampersand. The apostrophe is this time shown correctly, but the ampersand is replaced by `&`. The same with `<` and `>`.
Zathura should not replace these characters by their html escape sequences.
![zathura_contents](/uploads/b85443bb68d7e9b483730db8eff79932/zathura_contents.png)
[zathuratest.odt](/uploads/43ca25237caf8124a406efdaa3c61fdc/zathuratest.odt)
[zathuratest.pdf](/uploads/4ebbb8fa808254fc49332a7292d54ae1/zathuratest.pdf)
EDIT: I'm using version.
```
zathura 0.5.1
girara 0.3.7 (runtime: 0.3.7)
(plugin) cb (0.1.10) (/usr/lib/zathura/libcb.so)
(plugin) pdf-poppler (0.3.0) (/usr/lib/zathura/libpdf-poppler.so)
(plugin) djvu (0.2.9) (/usr/lib/zathura/libdjvu.so)
(plugin) ps (0.2.7) (/usr/lib/zathura/libps.so)
```https://git.pwmt.org/pwmt/zathura/-/issues/319Bookmarks don't save file paths2022-12-13T08:16:59+01:00Fereidoon AzadiBookmarks don't save file pathsUsing `blist` to jump to a bookmark doesn't automatically open the associated file of the bookmark.Using `blist` to jump to a bookmark doesn't automatically open the associated file of the bookmark.https://git.pwmt.org/pwmt/zathura/-/issues/317How do I set the scroll amount for keybindings in zathurarc?2022-12-14T17:34:01+01:00Fereidoon AzadiHow do I set the scroll amount for keybindings in zathurarc?How do I set the scroll amount for keybindings in zathurarc?
I want something like:
```
map <Left> scroll left 30
map <Right> scroll right 30
map <A-Left> scroll left 5
map <A-Right> scroll right 5
```How do I set the scroll amount for keybindings in zathurarc?
I want something like:
```
map <Left> scroll left 30
map <Right> scroll right 30
map <A-Left> scroll left 5
map <A-Right> scroll right 5
```https://git.pwmt.org/pwmt/zathura/-/issues/316How do I lock the trackpad scrolling to be only vertical?2022-12-04T02:33:58+01:00Fereidoon AzadiHow do I lock the trackpad scrolling to be only vertical?How do I lock the trackpad scrolling to be only vertical? Currently, it keeps going sideways.
I am on macOS.How do I lock the trackpad scrolling to be only vertical? Currently, it keeps going sideways.
I am on macOS.https://git.pwmt.org/pwmt/zathura/-/issues/315Non-latin keys use2022-12-11T12:55:23+01:00Ghost UserNon-latin keys useHello. I'm from Ukraine, so I use both Ukrainian and English keyboard layouts, but every time I'm using Ukrainian I need to constantly switch to English, when I'm in zathura, so I can use zathura's keybindings. I've tried remap keys in c...Hello. I'm from Ukraine, so I use both Ukrainian and English keyboard layouts, but every time I'm using Ukrainian I need to constantly switch to English, when I'm in zathura, so I can use zathura's keybindings. I've tried remap keys in config and zathura's menu, but that didn't worked out. Is there any fix?https://git.pwmt.org/pwmt/zathura/-/issues/314Zathura --synctex-forward cannot parse :2022-11-17T22:51:11+01:00GZ QXZathura --synctex-forward cannot parse :If the filepath parsed to `zathura --synctex-forward X:X '/path/to/some-name-with:sign/'`, zathura crush with error:
```
error: Failed to parse argument to --synctex-forward.
```If the filepath parsed to `zathura --synctex-forward X:X '/path/to/some-name-with:sign/'`, zathura crush with error:
```
error: Failed to parse argument to --synctex-forward.
```https://git.pwmt.org/pwmt/zathura/-/issues/313Add support for documents with unequal page sizes2022-12-03T15:15:49+01:00Vlad-Stefan HarbuzAdd support for documents with unequal page sizesWhen viewing documents with pages of differing sizes, zathura uses the largest page size as the size for all pages. In the case of e.g. papers from JSTOR (and other kinds of documents), the first page is much larger. This means that zath...When viewing documents with pages of differing sizes, zathura uses the largest page size as the size for all pages. In the case of e.g. papers from JSTOR (and other kinds of documents), the first page is much larger. This means that zathura adds massive padding around most pages, jumping to a page jumps into its surrounding whitespace, and the reading experience is in general very janky.
Here is a PDF affected by this problem: https://vladh.net/t/tok.pdf
This issue makes zathura quite unusable for me, since I'm experiencing this issue with quite a few documents, and it makes reading very unpleasant. Would this be a difficult thing to fix? I am happy to contribute if given some pointers as to the relevant code etc.https://git.pwmt.org/pwmt/zathura/-/issues/312mouse bindings don't work in fullscreen2023-01-08T00:03:20+01:00a bmouse bindings don't work in fullscreen~/.config/zathurarc:
```
map <Button8> navigate previous
map <Button9> navigate next
```
Button8/9 are my mouse's side navigation buttons (as given by `xev`) accessible by the left thumb
The binds work fine when the window is maximized ...~/.config/zathurarc:
```
map <Button8> navigate previous
map <Button9> navigate next
```
Button8/9 are my mouse's side navigation buttons (as given by `xev`) accessible by the left thumb
The binds work fine when the window is maximized or smaller, but when I go into fullscreen (F11), they stop working.
I also can't map Button4 or Button5 as noted in girara#12