zathura issueshttps://git.pwmt.org/pwmt/zathura/-/issues2022-08-20T17:41:01+02:00https://git.pwmt.org/pwmt/zathura/-/issues/300Window not raised with synctex-forward (Plasma/Wayland)2022-08-20T17:41:01+02:00gi1242 gi1242Window not raised with synctex-forward (Plasma/Wayland)If you run `zathura --synctex-forward ...` on an already open file, it doesn't raise the window or demand attention on Plasma/Wayland. Would it be possible to do this? (Or at least have an option to do this?) Quite often if you have mult...If you run `zathura --synctex-forward ...` on an already open file, it doesn't raise the window or demand attention on Plasma/Wayland. Would it be possible to do this? (Or at least have an option to do this?) Quite often if you have multiple windows viewing the same PDF on different virtual desktops, `zathura --synctex-forward` chooses to open the PDF on an instance in a different desktop. This is fine; but it would be nice if it would also raise that window (or at least demand attention) so the user knows which window to look at.
Thanks in advancehttps://git.pwmt.org/pwmt/zathura/-/issues/298[Feat] Remember recolor state as well2022-07-26T02:28:36+02:00explosion-mental[Feat] Remember recolor state as wellZathura remembers the page of the document whenever closed and reopened, as well as the zoom level or scalemode and the bookmarks. Adding one more flag to the zathura file 'cache' shouldn't add that much complexity.
situacion:
> I alwa...Zathura remembers the page of the document whenever closed and reopened, as well as the zoom level or scalemode and the bookmarks. Adding one more flag to the zathura file 'cache' shouldn't add that much complexity.
situacion:
> I always want to read this pdf in 'dark mode' (recolored).https://git.pwmt.org/pwmt/zathura/-/issues/297Bugs with hotkeys (a/s/d) in i3 WM2022-09-12T18:03:32+02:00Vasisualiy PupkinBugs with hotkeys (a/s/d) in i3 WMWhen the window of zathura managed by i3 in fixed mode -- bugs appears. After 2-4 changes from best-fit to full width mode and back -- the window don't react. Same behaviour with double- single-paged mode.
The bug does not appear if a w...When the window of zathura managed by i3 in fixed mode -- bugs appears. After 2-4 changes from best-fit to full width mode and back -- the window don't react. Same behaviour with double- single-paged mode.
The bug does not appear if a window is in floating mode in i3.
i3: 4.20
zathura: 0.4.5https://git.pwmt.org/pwmt/zathura/-/issues/294configuration for vertical scroll only (no horizontal scroll) with touchpad o...2022-07-03T06:42:55+02:00git labconfiguration for vertical scroll only (no horizontal scroll) with touchpad or touchscreenI'm happy mapping customized keyboard and mouse bindings for scroll actions. However, there seems no way to customize 2-finger touchpad or touchscreen bindings, which by default scroll both vertically and horizontally. Is there a method ...I'm happy mapping customized keyboard and mouse bindings for scroll actions. However, there seems no way to customize 2-finger touchpad or touchscreen bindings, which by default scroll both vertically and horizontally. Is there a method to make it vertical scroll only? Thanks!
I'm using zathura 0.4.7 shipped with Debian 11.https://git.pwmt.org/pwmt/zathura/-/issues/293Edit index mode2022-06-18T22:32:42+02:00shabbaEdit index modeThere should be a way to add pages to index mode. On the subject, I don't see why bookmarks are a feature when index mode exists. Wouldn't it be better to just add and remove bookmarks to "the index" rather than create a whole separate b...There should be a way to add pages to index mode. On the subject, I don't see why bookmarks are a feature when index mode exists. Wouldn't it be better to just add and remove bookmarks to "the index" rather than create a whole separate bookmark system that cannot be accessed from other PDF viewers? What is the purpose of having both index mode and bookmarks.https://git.pwmt.org/pwmt/zathura/-/issues/292Problems with Wayland2022-08-21T15:21:31+02:00John JuttyProblems with WaylandI just switched to Wayland.
When I open a PDF, the `a` and `s` keybindings do nothing. If I turn to full screen mode with `F11` and back by pressing `F11` again, then it starts to work again.
it worked fine with X11.I just switched to Wayland.
When I open a PDF, the `a` and `s` keybindings do nothing. If I turn to full screen mode with `F11` and back by pressing `F11` again, then it starts to work again.
it worked fine with X11.https://git.pwmt.org/pwmt/zathura/-/issues/291[Feature request] Use "home row" letters/keys for link texts2022-05-17T13:03:08+02:00Ankur Sinha[Feature request] Use "home row" letters/keys for link textsThis one comes from my usage of Qutebrowser. When one needs to follow a link, it has a similar link selection mode. However, instead of using numbers for the links, it generates texts using the home row keys/letters: asdfghjkl. The advan...This one comes from my usage of Qutebrowser. When one needs to follow a link, it has a similar link selection mode. However, instead of using numbers for the links, it generates texts using the home row keys/letters: asdfghjkl. The advantage here is that one does not need to leave the home row to open the links.
I was wondering if this would be possible to implement maybe as an optional setting that users can enable?
Thanks very much.https://git.pwmt.org/pwmt/zathura/-/issues/290More user friendly PDF attachment export2022-05-16T13:25:43+02:00Martin CMore user friendly PDF attachment export(I hope this is the right repo for pdf specific problems.)
I have a pdf with attachment and want to export it. `:export` and `:export filename` does not work (wrong number of arguments)
Unfortunately, the man page or --help don't give m...(I hope this is the right repo for pdf specific problems.)
I have a pdf with attachment and want to export it. `:export` and `:export filename` does not work (wrong number of arguments)
Unfortunately, the man page or --help don't give me any instructions how to use the `:export` command.
The web tells me it need to use `:export attachment-{name} {file_name}`. but what is the right `{name}`? There is no function to list all attachments.
And `:export attachment-foo42 bar` tells me it wrote the attachment 'attachment-foo42' to 'bar', even though there is no attachment with the name 'attachment-foo42' in that PDF file, and there is no new file with the name bar.
With firefox I got the name of the attachment, but even with the name, I cannot export it using zathura.
You can test this yourself with [this file(17MB)](https://lab6.com/1). The attachment is called `coverdisk1.img`.
`:export coverdisk1.img floppy.img` yields `Unknown attachment or image 'coverdisk1.img'.`.
`:export attachment-coverdisk1.img floppy.img` yields `Wrote attachment 'attachment-coverdisk1.img' to '/home/mcd/Desktop/floppy.img'.`, but `/home/mcd/Desktop/floppy.img` does not exist.
The documentation needs to be clearer, there should be a way to list attachment names, and export should not say it dumped the attachment, if it didn't do so.
Or am I stupid?
```
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.8) (/usr/lib/zathura/libpdf-mupdf.so)
(plugin) cb (0.1.9) (/usr/lib/zathura/libcb.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/289Toggle/cycle variable values2022-05-13T23:15:00+02:00Mark WainToggle/cycle variable valuesHi, I want to map D to toggle the variable `first-page-column` between `1:1` and `1:2`. I.e. if `first-page-column` is `1:1` on pressing D it'll change to `1:2`, if I press D again it'll change to `1:1`.
This doesn't seem to be possible...Hi, I want to map D to toggle the variable `first-page-column` between `1:1` and `1:2`. I.e. if `first-page-column` is `1:1` on pressing D it'll change to `1:2`, if I press D again it'll change to `1:1`.
This doesn't seem to be possible or very difficult with the current scripting capabilities. If I'm not wrong, I propose that the command `set` should be changed. This is the grammar:
`set <option> <value> [value 2] [value 3]...`
In practice:
`set first-page-column "1:1" "1:2"`
`Set` cycles the variable between the provided arguments. The toggle command in source engine games behaves in a similar way I'm describing, [its wiki page](https://developer.valvesoftware.com/wiki/Toggle) has longer definition that you may want to see if I'm not being clear.https://git.pwmt.org/pwmt/zathura/-/issues/287Subsequent links are incorrectly followed2022-05-10T20:08:28+02:00John JuttySubsequent links are incorrectly followedSuppose on page 3 of the PDF there is a link, let's say link number 5, and that link redirects to another page of the PDF, let's say page 25, which is itself full of links.
If you are on page 3, press `f`, type 5 and press enter, you wi...Suppose on page 3 of the PDF there is a link, let's say link number 5, and that link redirects to another page of the PDF, let's say page 25, which is itself full of links.
If you are on page 3, press `f`, type 5 and press enter, you will be redirected to page 25. So far s good.
But the zathura automatically clicks on link "5" on the new page (page 25 in the example).
Its like, once on the new page, zathura automatically press f, type 5 and press enter again on the new page. So the action is effectivelly carried out two times.
Here is a video of the bug: [video](https://youtu.be/BLI_IpIrdSc)https://git.pwmt.org/pwmt/zathura/-/issues/286:open navigation2022-05-10T17:33:31+02:00Dian Fay:open navigationhi! Right now completion makes opening files trickier or at least more effortful than necessary. In particular, pressing tab always completes the very first possible entry immediately, e.g. entering `:o <tab>` yields `:open /home/dian/mo...hi! Right now completion makes opening files trickier or at least more effortful than necessary. In particular, pressing tab always completes the very first possible entry immediately, e.g. entering `:o <tab>` yields `:open /home/dian/most/recent/file.pdf`, or `:o ~/downloads<tab>` yields `:open /home/dian/downloads/last/known/file/there.pdf` (even if that file doesn't exist anymore). I have a few ideas for improvements:
* use arrow keys to move up or down the current completion list, if one is visible
* tab-complete more like the shell over the union of recent files (filtered by current path, if any), openable files in the current path if it's a directory, and subdirectories visible from the current path (if a directory)
* initial tab press completes only to ambiguity (`:o <tab>` yields `:open /home/dian/` since I've never opened a pdf elsewhere, add `tax<tab>` to resolve up to `/home/dian/taxes/20`)
* subsequent tabs cycle through the current filtered list (keep pressing tab to cycle through tax years)https://git.pwmt.org/pwmt/zathura/-/issues/285Footnotes not followed correctly2022-05-07T08:45:48+02:00John JuttyFootnotes not followed correctlyWhen I press `f`, type the number corresponding to the link to the footnote, and press CR, I'm redirected to the start of the page that contains the footnote, not to the footnote itself (which is typically the same page I'm in).When I press `f`, type the number corresponding to the link to the footnote, and press CR, I'm redirected to the start of the page that contains the footnote, not to the footnote itself (which is typically the same page I'm in).https://git.pwmt.org/pwmt/zathura/-/issues/282goto2023-04-09T17:29:24+02:00yuan digoto```
map h goto previous
map l goto next
```
doesn't work. Description of man page is quite vague and I don't know how to make `h` `j` act like `pgup` and `pgdn`.```
map h goto previous
map l goto next
```
doesn't work. Description of man page is quite vague and I don't know how to make `h` `j` act like `pgup` and `pgdn`.https://git.pwmt.org/pwmt/zathura/-/issues/280sandbox issue: syscall=324 is blocked2022-04-22T10:51:53+02:00Tomare Omosandbox issue: syscall=324 is blockedOn my system
```
$ xuname
Void 5.16.18_1 x86_64-musl GenuineIntel uptodate rrnDDFFFFFF
$ zathura --version
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.7) (/usr/lib64/zathura/libpdf-mupdf.so)
(plugin) ps (0.2.7) (/...On my system
```
$ xuname
Void 5.16.18_1 x86_64-musl GenuineIntel uptodate rrnDDFFFFFF
$ zathura --version
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.7) (/usr/lib64/zathura/libpdf-mupdf.so)
(plugin) ps (0.2.7) (/usr/lib64/zathura/libps.so)
(plugin) djvu (0.2.9) (/usr/lib64/zathura/libdjvu.so)
```
under Wayland (compositor is river) the strict sandbox config option does not work:
`audit: type=1326 audit(1649938688.774:4): auid=1000 uid=1000 gid=1000 ses=1 pid=21759 comm="zathura" exe="/usr/bin/zathura" sig=31 arch=c000003e syscall=324 compat=0 ip=0x7f12ee42ba7c code=0x0`https://git.pwmt.org/pwmt/zathura/-/issues/279Export internal variables to other processes2022-08-20T13:59:46+02:00Hugo RaguetExport internal variables to other processesThis is a feature request.
Currently, it is possible to retrieve the page number of a document currently displayed on an instance of Zathura, through dbus-services. I would like to get acces to more internal variables, in particular the...This is a feature request.
Currently, it is possible to retrieve the page number of a document currently displayed on an instance of Zathura, through dbus-services. I would like to get acces to more internal variables, in particular the current zoom level and offset coordinates, either through dbus-services or through any other mechanism.
This would pave the way to sophisticated interactions with other softwares.
Let me mention right away that in my use case, it is the position of the mouse pointer over the document, within the coordinate system of the document, that I am after ; but the above (zoom level, offset coordinates even relative to width and height of the page) would be a good start if it is easier to do.https://git.pwmt.org/pwmt/zathura/-/issues/278Trouble with exec mapped to mouse button2023-11-07T00:38:48+01:00Hugo RaguetTrouble with exec mapped to mouse buttonI experience troubles when trying to map mouse buttons to exec commands.
`map <C-l> exec ls` works like expected, but after `map <Button3> exec ls` a click with Button 3 of the mouse spawns a process which fails with
Failed to execu...I experience troubles when trying to map mouse buttons to exec commands.
`map <C-l> exec ls` works like expected, but after `map <Button3> exec ls` a click with Button 3 of the mouse spawns a process which fails with
Failed to execute command: Failed to execute child process “/shorttitle” (No
such file or directory)
Note that in the above `/shorttitle` seems to be some random gibberish that might depend on the content of the currently open document.https://git.pwmt.org/pwmt/zathura/-/issues/277Enable Cursor2022-04-13T12:08:05+02:00Paul HeidekrügerEnable CursorHi!
Since I use full-screen magnification, it would be very convenient to have the ability to enable a cursor which can be moved with the usual Vim keys. Basically, since I'm zoomed in so far that a whole line doesn't fit on my screen, ...Hi!
Since I use full-screen magnification, it would be very convenient to have the ability to enable a cursor which can be moved with the usual Vim keys. Basically, since I'm zoomed in so far that a whole line doesn't fit on my screen, the magnification tool can follow the cursor and move the zoomed region automatically.
TL;DR: is it possible to enable a vim-like cursor for navigation? If no, at least I haven't found a way, would this be an interesting feature request? I know, niche use case, but maybe it would be useful for others too?
Many thanks,
Paulhttps://git.pwmt.org/pwmt/zathura/-/issues/276Avoid dbus connection in strict sandbox mode2023-01-18T12:02:10+01:00valoqAvoid dbus connection in strict sandbox modeWith 'set dbus-service false' in zathurarc the dbus service should not be used.
However, even with this setting set to false, we have an open file descriptor to the dbus socket in '/run/user/UID/bus'
The setting disables the SyncTeX f...With 'set dbus-service false' in zathurarc the dbus service should not be used.
However, even with this setting set to false, we have an open file descriptor to the dbus socket in '/run/user/UID/bus'
The setting disables the SyncTeX forwarding but seems to still initialize the dbus service connection.
This is relevant when using the strict sandbox setting, as the open socket connection to dbus is an easy way of sandbox escape.
Since we dont need this connection when the dbus-service is set to false (or when using the strict sandbox) we shoudl be able to avoid initializing this connection.
Im not quite sure where this initialization happens thoughhttps://git.pwmt.org/pwmt/zathura/-/issues/275[Question] Cache document in the background2022-10-13T21:33:36+02:00TornaxO7[Question] Cache document in the background## The "problem"
Hello! I've a PDF with more than 5000 pages. Luckily, zathura opens pretty fast, but as soon as I start to search a word with the `/` "command", zathura hangs and needs some time to react to it.
## Question ("Feature re...## The "problem"
Hello! I've a PDF with more than 5000 pages. Luckily, zathura opens pretty fast, but as soon as I start to search a word with the `/` "command", zathura hangs and needs some time to react to it.
## Question ("Feature request"?)
I'm wondering if it's possible to have an option where zathura is allowed to cache the whole document in a background-process or something like that to avoid the loading time if the user starts the `/` command for example.
## What have you tried?
I went through `man zathurarc` but I couldn't find such an option or I was just blind at that time o.Ohttps://git.pwmt.org/pwmt/zathura/-/issues/274rseq syscall not allowed in strict sandbox2023-03-06T07:25:50+01:00Simon Drseq syscall not allowed in strict sandbox# How to reproduce
```
$ zathura --version
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.8) (/usr/lib/zathura/libpdf-mupdf.so)
```
```
$ cat .config/zathura/zathurarc
set selection-clipboard clipboard
set sandbox s...# How to reproduce
```
$ zathura --version
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.8) (/usr/lib/zathura/libpdf-mupdf.so)
```
```
$ cat .config/zathura/zathurarc
set selection-clipboard clipboard
set sandbox strict
```
Running on Arch Linux, sway/wayland.
Try to open any pdf document or just start zathura
# Expected
A window opens.
# Observed
Zathura does not open and in journalctl you can find:
```
... audit[103187]: SECCOMP auid=1000 uid=1000 gid=984 ses=1 pid=103187 comm="zathura" exe="/usr/bin/zathura" sig=31 arch=c000003e syscall=334 compat=0 ip=0x7f81638183c6 code=0x0
```
334 corresponds to `rseq`.
Running zathura with `--log-level debug` shows that it allows some syscalls, but `rseq` is not in the list.
Wanted to fix it, but already seems to be fixed in `develop` in https://git.pwmt.org/pwmt/zathura/-/commit/0cfaac072df2bc0ca6693c6262ec5753076e3fe9, just not yet released.