pwmt issueshttps://git.pwmt.org/groups/pwmt/-/issues2024-03-03T13:09:07+01:00https://git.pwmt.org/pwmt/zathura/-/issues/406[Question] How to display search match counters?2024-03-03T13:09:07+01:00Ignacio Taranto[Question] How to display search match counters?Hello,
Is there a way to display search match counters?
I'd like to see something like [1/5], which would mean the current match and the total matches.
I read the documentation and I couldn't find this functionality, so I'm not sure...Hello,
Is there a way to display search match counters?
I'd like to see something like [1/5], which would mean the current match and the total matches.
I read the documentation and I couldn't find this functionality, so I'm not sure if it exists or not.https://git.pwmt.org/pwmt/zathura/-/issues/384Option to display epub pages continously2023-12-03T13:15:31+01:00a bOption to display epub pages continouslyIs there a way to remove the margin/gap between epub pages? There should be an option to display them in a continuous/gapless way. Setting `page-padding` to `0` doesn't remove this effect, unfortunately.
![image](/uploads/e17b3c9132bf19...Is there a way to remove the margin/gap between epub pages? There should be an option to display them in a continuous/gapless way. Setting `page-padding` to `0` doesn't remove this effect, unfortunately.
![image](/uploads/e17b3c9132bf196941142d2dd7e2b38e/image.png)https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/38[feature request] support use javascript/css show/hide info in epub2023-09-17T18:32:14+02:00h left[feature request] support use javascript/css show/hide info in epubsome epub add a javascript button toggle info,
```javascript
<div id="content">
<p>This is the content</p>
</div>
<button onclick="toggleContent()">Toggle Content</button>
<script>
function toggleContent() {
var content = documen...some epub add a javascript button toggle info,
```javascript
<div id="content">
<p>This is the content</p>
</div>
<button onclick="toggleContent()">Toggle Content</button>
<script>
function toggleContent() {
var content = document.getElementById("content");
if (content.style.display === "none") {
content.style.display = "block";
} else {
content.style.display = "none";
}
}
</script>
```
or use css toggle content
I see it works in calibre but not in zathura, hope to support this featurehttps://git.pwmt.org/pwmt/zathura/-/issues/355[FR] Expose index of the current document through dbus_interface.c2023-12-08T18:42:53+01:00Rodrigo Morales[FR] Expose index of the current document through dbus_interface.cExpose table of contents through dbus
By calling the functions defined in [dbus-interface.c](https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/dbus-interface.c), I have been able to write Elisp functions (please see below) in ord...Expose table of contents through dbus
By calling the functions defined in [dbus-interface.c](https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/dbus-interface.c), I have been able to write Elisp functions (please see below) in order to be able to reuse Zathura instances when opening Org Mode links of the form `[[file:<<filename>>#<<page number>>` (i.e. the same Zathura instance will be used if it is already opening the desired document.)
```elisp
(defun my/dbus-zathura-use-instance-or-open-new (file link)
"Launch zathura to open FILE or Reuse a running instance.
LINK is provided by Org Mode when this function has been
specified in `org-file-apps'. This function is intended to be
used in `org-file-apps' and shouldn't be called on its own."
(let* ((process-alist (proced-process-attributes))
(pids (mapcar 'car (proced-filter process-alist '((comm . "zathura")))))
(pid
(catch 'found
(cl-loop for pid in pids
when (equal
(dbus-get-property
:session
(concat "org.pwmt.zathura.PID-" (number-to-string pid))
"/org/pwmt/zathura"
"org.pwmt.zathura"
"filename")
file)
do (throw 'found pid))))
(page-number
(or
(progn
;; FIXME: According to the docstring of org-file-apps, we
;; can access capture groups using (match-string n
;; link). However, when I tried it, the capture groups
;; didn't have the entire content. For this reason, I'm
;; running string-match with the same regex that I used
;; in org-file-apps, but (match-string n link) should
;; work as specified in the Org Mode documentation.
(string-match "\\.\\(pdf\\|djvu\\)::\\([0-9]+\\)\\'" link)
(match-string 2 link))
"1")))
(if pid
;; Jump to that page in the existing instance
(dbus-call-method
:session
(concat "org.pwmt.zathura.PID-" (number-to-string pid))
"/org/pwmt/zathura"
"org.pwmt.zathura"
"GotoPage"
(1- (string-to-number page-number)))
;; Open a new instance
(make-process
:name "zathura"
:buffer nil
:command `("zathura" "--page" ,page-number ,file)))))
```
```elisp
(setq org-file-apps
'((auto-mode . emacs)
(directory . emacs)
("\\.png\\'" . "mpv %s")
("\\.\\(pdf\\|djvu\\)" . my/dbus-zathura-use-instance-or-open-new)
("\\.\\(pdf\\|djvu\\)::\\([0-9]+\\)\\'" . my/dbus-zathura-use-instance-or-open-new)))
```
Now, I would like to create a function for Emacs which prompts for an item in the table of contents of the document and jumps to that specific page. Currently, [dbus-interface.c](https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/dbus-interface.c) expose the page number and the filename and it provides an interface for jumping to an specific page (interface which I used in my Elisp function shown above). However, the table of contents from the current document is not exposed. Therefore, I propose that the index of the document is exposed in some way.
This feature will not only benefit Emacs users but also users of any completion framework (e.g. rofi, dmenu, fzf, vim, etc), since such specialized completion frameworks have more features available (e.g. regex search, movement with operators, fuzzy finding) which, I believe, might require significant effort to incorporate in the zathura index viewer.https://git.pwmt.org/pwmt/zathura/-/issues/352Can't run piped shell commads into `:exec`2023-05-17T11:11:38+02:00archie eichraCan't run piped shell commads into `:exec`I am trying to use exec command but when I use pip in the command it don't work. Is this a bug or should I escape `|` character or something like that?I am trying to use exec command but when I use pip in the command it don't work. Is this a bug or should I escape `|` character or something like that?https://git.pwmt.org/pwmt/zathura/-/issues/340dbus jump to named target2023-09-18T08:37:08+02:00Pierre-Lucdbus jump to named targetIs there a way to get zathura to jump to some named target in the current file via dbus ?
I have multiple zathura instances that are all reading from a different file though they all share the same references hidden in them e.g. `\label...Is there a way to get zathura to jump to some named target in the current file via dbus ?
I have multiple zathura instances that are all reading from a different file though they all share the same references hidden in them e.g. `\label{someTarget}`.
`http://site/document.pdf#someTarget
I can get most browser to go to any `someOtherLaTeXLabel` but not zathura yet !
I currently have to find somehow on what page the song is and then :
`dbus-send --type="method_call" --dest=org.pwmt.zathura.PID-123456 /org/pwmt/zathura org.pwmt.zathura.GotoPage uint32:44`
out of a 2k+page document.
In fact, if somehow zathura could return back the page in which named-target is…
Any hints on how to go about this feature ?Sebastian RamacherSebastian Ramacherhttps://git.pwmt.org/pwmt/zathura/-/issues/339[feature request] support use javascript/css show/hide info in epub2023-09-17T18:32:15+02:00h left[feature request] support use javascript/css show/hide info in epubsome epub add a javascript button toggle info,
```javascript
<div id="content">
<p>This is the content</p>
</div>
<button onclick="toggleContent()">Toggle Content</button>
<script>
function toggleContent() {
var content = documen...some epub add a javascript button toggle info,
```javascript
<div id="content">
<p>This is the content</p>
</div>
<button onclick="toggleContent()">Toggle Content</button>
<script>
function toggleContent() {
var content = document.getElementById("content");
if (content.style.display === "none") {
content.style.display = "block";
} else {
content.style.display = "none";
}
}
</script>
```
or use css toggle content
I see it works in calibre but not in zathura, hope to support this featurehttps://git.pwmt.org/pwmt/zathura/-/issues/333shell completion is broken when using `$ZATHURA_PLUGINS_PATH`2023-09-13T23:49:55+02:00K LMshell completion is broken when using `$ZATHURA_PLUGINS_PATH`The completion scripts, say for [fish](https://git.pwmt.org/pwmt/zathura/-/blob/develop/data/fish-completion.in#L3), look for plugins and try to find good completion candidates. However, it only looks for plugins in the build-time plugin...The completion scripts, say for [fish](https://git.pwmt.org/pwmt/zathura/-/blob/develop/data/fish-completion.in#L3), look for plugins and try to find good completion candidates. However, it only looks for plugins in the build-time plugin directory. I believe these scripts should look for plugins under `$ZATHURA_PLUGINS_PATH` first, and only if it's undefined use the build-time plugin directory.
Thanks for looking into this.https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/31Zathura - Show the document metadata2022-11-06T21:34:49+01:00Volodymyr ProkopyukZathura - Show the document metadataHi,
I wanted to propose a feature request that shows document metadata detailed below.
Show document metadata in the status line or in a separate window.
It is very convenient being able to see the document metadata as in the screensh...Hi,
I wanted to propose a feature request that shows document metadata detailed below.
Show document metadata in the status line or in a separate window.
It is very convenient being able to see the document metadata as in the screenshot below
![image](/uploads/0cbc6ed29d1c16233152ec706d2fbef4/image.png)
Thank you very much,
Vladhttps://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/265[feature] support embedded adobe flash and U3D?2022-08-20T14:04:04+02:00Freed Wu[feature] support embedded adobe flash and U3D?Texlive has two package media9 and animate which allow user to embedded some interactive animations in pdf. However, I found only KDE's okular support to display these animations. I hope my favourite pdf browser can do it, too.
Some exa...Texlive has two package media9 and animate which allow user to embedded some interactive animations in pdf. However, I found only KDE's okular support to display these animations. I hope my favourite pdf browser can do it, too.
Some example pdfs are `/usr/share/texmf-dist/doc/latex/animate/animate.pdf` and `/usr/share/texmf-dist/doc/latex/media9/media9.pdf`, they are the document about these packages and containing the animations. If texlive is installed, these pdfs should exist.
Thanks!https://git.pwmt.org/pwmt/zathura/-/issues/260Feature Request: Progress percentage in statusbar2022-01-11T18:39:59+01:00prgFeature Request: Progress percentage in statusbarIt would be great to have the option to display a percentage of the current page / total pages in a percent, next to the [num/num] on the leftIt would be great to have the option to display a percentage of the current page / total pages in a percent, next to the [num/num] on the lefthttps://git.pwmt.org/pwmt/zathura/-/issues/257How can I flip pages in dual page mode?2022-08-20T14:07:30+02:00Nikin BaidarHow can I flip pages in dual page mode?When I am reading a book in dual page mode is
Say I have a book open on dual page mode; page 6 is on the left and 7 is on the right. Now I want to look at page 7 on the left and page 8 on the right and then again go back to page 6 on th...When I am reading a book in dual page mode is
Say I have a book open on dual page mode; page 6 is on the left and 7 is on the right. Now I want to look at page 7 on the left and page 8 on the right and then again go back to page 6 on the left and 7 on the right.
I've read the man page thoroughly but there is no mention of this. Is there some work around to achieve this sort of behavior?
Edit: There is an part in the man pages for zathurarc where it says `advance-pages-per-row` defines if the number of pages per row should be honored when advancing a page. I tired setting its value to true it seem to do nothing. Can someone please tell me what this option does.https://git.pwmt.org/pwmt/zathura/-/issues/249Change recolor from command line2021-10-15T20:36:04+02:00SimoneChange recolor from command lineI would like to have a way to invert the color theme from command line. I know that I can send signals through dbus interface, but I still can't figure out which method to use to change theme.
Up to now, I can do it from an open documen...I would like to have a way to invert the color theme from command line. I know that I can send signals through dbus interface, but I still can't figure out which method to use to change theme.
Up to now, I can do it from an open documents using `Ctrl+r`, but that means that I should do it for every single instance.
The use case is pretty simple: I have to switch often from outside/inside locations and I have already a script to toggle light/dark theme for many applications. I want to add zathura to the list.https://git.pwmt.org/pwmt/zathura/-/issues/239How to remove Zathura's title bar in Mac2022-12-24T20:34:51+01:00MertcanHow to remove Zathura's title bar in MacIt seems like the title bar of a random pdf opened by Zathura is not removable in Mac. I checked the zathura manual and have not been able to find a solution. Here is the image of the title bar:
![1f7QS](/uploads/f3f506035ef0f89ae48af48...It seems like the title bar of a random pdf opened by Zathura is not removable in Mac. I checked the zathura manual and have not been able to find a solution. Here is the image of the title bar:
![1f7QS](/uploads/f3f506035ef0f89ae48af483136cf20a/1f7QS.png)https://git.pwmt.org/pwmt/zathura/-/issues/236[Feature Request] Caret mode for text selection in zathura2022-05-11T13:24:51+02:00esiix vp[Feature Request] Caret mode for text selection in zathuraAs zathura is based for keyboard workflow there is only text selection available through mouse. It would have been good if it had caret mode like that in qutebrowser to select text. The caret mode is a mode where a caret appears on the ...As zathura is based for keyboard workflow there is only text selection available through mouse. It would have been good if it had caret mode like that in qutebrowser to select text. The caret mode is a mode where a caret appears on the pdf screen by clicking v and it can be moved around by using j,k,h and l.Clicking v or V again after caret mode puts in selection mode where we can select text like vim.https://git.pwmt.org/pwmt/zathura/-/issues/235[Feature request] When opening multiple files, open them in sorted order2021-07-14T18:11:22+02:00Hendrik Lankers[Feature request] When opening multiple files, open them in sorted orderWhen opening multiple files using a wildcard, e.g. `zathura *.pdf`, it would be cool if the files were opened in a sorted manner. For example, the files could be automatically sorted alphanumerically, or by identifying a common pattern a...When opening multiple files using a wildcard, e.g. `zathura *.pdf`, it would be cool if the files were opened in a sorted manner. For example, the files could be automatically sorted alphanumerically, or by identifying a common pattern among all qualified file names.
Use case: When opening a bunch of lecture notes at once, their order can often be determined by file name, making it easier to navigate through the windows. https://git.pwmt.org/pwmt/zathura/-/issues/234add flip page feature2021-07-14T18:11:48+02:00Nikin Baidaradd flip page featureZathura is really great for viewing pdfs.
But one feature I am really missing is the one for a flip page.
Whenever I am in dual page mode, there is no way to bring the page on the right to the left side, as in flipping a page, or vice-v...Zathura is really great for viewing pdfs.
But one feature I am really missing is the one for a flip page.
Whenever I am in dual page mode, there is no way to bring the page on the right to the left side, as in flipping a page, or vice-versa to flip back.
Are there any new updates where this feature could be added?https://git.pwmt.org/pwmt/zathura/-/issues/232Enhance font thickness2021-07-14T18:03:57+02:00Reto SchnyderEnhance font thicknessOn low DPI displays, some fonts (like computer modern) can be very thin and hard to read. This is especially the case when using a dark recolor. It would be great if zathura could provide a feature to enhance legibility in that case.
I ...On low DPI displays, some fonts (like computer modern) can be very thin and hard to read. This is especially the case when using a dark recolor. It would be great if zathura could provide a feature to enhance legibility in that case.
I don't know if there is a way to improve this on the side of poppler / mupdf through font hinting or some such. If not, I suggest a setting to apply gamma correction to the output. I hacked together a proof of concept that applies a gamma correction of 1.5 before recoloring, see the following screenshot. In my opinon, the gamma corrected output (the lower screenshot) is much easier on the eyes. If there is interest, I can try implementing gamma correction as a proper setting.
![zathura-gamma](/uploads/70c517bb02e7f68a8ed18f039bb42955/zathura-gamma.png)https://git.pwmt.org/pwmt/zathura/-/issues/228[Feature request] Navigate to next page with scrolling2023-07-26T13:10:02+02:00Robert Kusznier[Feature request] Navigate to next page with scrolling## Problem
When I'm reading a **zoomed-in** document I need to progress through it using a sequence of 2 different keys: `J` (go to the next page) and `L` (scroll to the bottom of the page).
1. When I start I'm at the top of the page. ...## Problem
When I'm reading a **zoomed-in** document I need to progress through it using a sequence of 2 different keys: `J` (go to the next page) and `L` (scroll to the bottom of the page).
1. When I start I'm at the top of the page. I read the visible part.
2. Then I I scroll down using `L`. Then I read the bottom part.
3. I need to go to the next page so I press `J` (or `PageDown`).
(and the cycle repeats)
So to progress through a document I need to use sequence `L`, `J`, `L`, `J`... In my opinion it's not the best user experience, because you all the time have remember which button you need to press now.
## Proposed solution
I think it would make a lot of sense to add a command that would merge both scrolling and going to the next page:
- If you are not at the bottom of the page, scroll page by one screen, no more than to the bottom of the page (or to the bottom of the page, to make it simpler)
- If you already are at the bottom of the page, go to the next page
Such a command could be bound to a key, e.g. `Space`, and then the document could be progressed using single key strokes (`Space`, `Space`, `Space` ...), without a need to think which one you need to press now.
## Correct me if I'm wrong
Please correct me if I'm wrong and this is already possible somehow.
### `scroll-page-aware`
I actually see an option in `man zathurarc` that seem like it could work like this - `scroll-page-aware`. The problem is it doesn't work like this. Instead it has some pretty weird behavior that I find hard to understand and describe here.