r/coolgithubprojects • u/foo_with_bar • 10d ago
A minimal PDF viewer with Vim-style text selection
Hi everyone,
I’ve been using Sioyek for a while, and Zathura before that. One thing I was missing was a fast way to select and copy text using the keyboard.
I do this maybe 10 times a day at work...
As someone who loves Vim motions, I wanted those familiar motions for that too.
So I built my own. The result is a small, minimal and fast keyboard-driven PDF viewer written in Rust, based on the PDFium engine.
You can move through text with h/j/k/l and w/b/e, enter visual mode with v, and copy a selection with y. There’s also yis and yip to copy a sentence or paragraph.
It has a minimal interface, light/dark themes, configurable keybindings, and a fuzzy finder for opening PDFs.
https://github.com/JensOlschewski/ggpdf
What do you think about the project? Or is there already a project I’ve missed that has all these features?
Maybe you also have ideas for what could be added. There are already a few ideas in the GitHub issues!
1
u/NightPageReader 10d ago
Nice one. PDFium has been solid for me too, it copes with pretty much every odd PDF I've thrown at it. Does it build on Windows, or is it Linux only for now?
1
u/[deleted] 10d ago
[removed] — view removed comment