pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.09k stars 146 forks source link

[Feature request] Add "focus mode" option to emphasize a subsection of text? #346

Open sebastinas opened 2 years ago

sebastinas commented 2 years ago

On GitLab by @keith on Aug 30, 2022, 04:33


Motivation

One of the major bottlenecks I've currently noticed when working with Zathura for PDF reading, is that it's very easy for me to lose my place.

When taking notes, for instance, I will often jump back-and-forth between reading in Zathura, and writing some notes in Neovim.

Even when the windows are tiled & displayed side-by-side, however, I find that I often have to take a few moments each time I shift my focus back to Zathura, in order to figure out where I had left off.

Possible solution

One possible solution that could help with this, would be to implement support for enabling sentence/paragraph// "emphasis", which can then be controlled & moved by the user, e.g. using arrow keys to slide it's position 1 unit forward/backward.

For example, the current text block that is in focus could be rendered normally, and all of the surrounding text could be dimmed.

Alternatively, the focus text could be highlighted, and the outside text could remain as-is.

Some inspiration: https://github.com/junegunn/limelight.vim

Just a thought..

Thanks for all of your work on Zathura! It is really wonderful and I use it every day. :pray:

sebastinas commented 2 years ago

On GitLab by @explosion-mental on Aug 31, 2022, 04:14


From experience, a tiling setup and note taking workflow is not nice for my eyes (laptop user). What I found out to work best is the use of scratchpads for the notes window, keeping the text at full size.

a demo but with a video.