Paperboy is a tiny .pdf management utility.
If you download papers and other pdf documents, you might have noticed that filenames like
1412.4880.pdf are not terribly helpful for finding anything later on. Especially if your download folder also contains about eighty files along the lines of
This tool helps with that. It will offer to rename and move files to a specified folder, and it even gives some filename suggestions by looking at the content and the pdf metadata.
Paperboy keeps its file management dumb on purpose (no keeping files in a database or hidden library folder), so you can uninstall it at any time and your files will remain perfectly accessible.
- Open a new file import dialog with Enter or Space.
- Switch between inbox and library with Tab.
- Open a file from the library with Enter or Space.
- Rename an already imported file with r.
- Quit the application with Esc or q or abort with Ctrl + c.
Homebrew on macOS
If you're a Homebrew user, you can install the latest version and its dependencies from the repo's tap:
$ brew install 2mol/tools/pboy
Linux/Mac binary release
Download the archive for your operating system from https://github.com/2mol/pboy/releases. Extract and install it with
$ tar zxvf pboy*.tar.gz $ mv pboy ~/.local/bin/
For the latter to work,
~/.local/bin/ needs to exist and be in your
PATH. Alternatively, put it in
Linux, any distro
I am still looking to package Paperboy for Debian/Ubuntu, Arch/Manjaro, Fedora, Doge Linux, or whatever else people install these days.
Any pointers or help with regards to generate
PKGBUILD, etc is appreciated. Ideally this could be mostly automated in CI, in the end Paperboy is just a single binary with a dependency or two. How do other packages do it? If you got a good example or link, open a GitHub issue!
Make sure you have
poppler installed, which will provide both
pdfinfo. On Linux, install
poppler with your package manager of choice. If you are on Mac and using Homebrew you can do
brew install poppler.
Assuming you have cabal or stack, the following will compile, then install the
pboy executable in your
$ git clone firstname.lastname@example.org:2mol/pboy.git $ cd pboy $ stack install
stack install with
cabal new-install at your leisure.
If you have Nix, then you can install
pboy with a single command:
$ nix-env -if https://github.com/2mol/pboy/tarball/master
Paperboy creates a
pboy.ini in your XDG config directory. This is probably in
~/.config/pboy/pboy.ini, the welcome or help screen will tell you. Use this to change your library and incoming folders, as well as to specify whether you want to move the imported files or just copy them.
Paperboy doesn't do anything fancy with providing renaming patterns yet. For example, some people requested to be able to specify a format like
author-document_name-date.pdf, others have asked if they could compose multiple suggestions into one. I haven't figured out a way to do this while keeping the UI simple and straightforward, so the idea needs a bit of design work first.
You're very welcome to suggest new features or open issues. See the Roadmap https://github.com/2mol/pboy/blob/master/Roadmap.md to get an idea about what's planned for future releases.
Releases can be created by pushing a new tag:
git tag -a 1.4rc1 -m "release candidate 1.4" git push --follow-tags
This will publish compiled assets for OSX and Linux, but only create a prerelease. For homebrew the tools repo also has to be updated with the SHA of the .tar.gz file.
- brick is a lovely way to a write a command-line UI.
- nmattia did the work to get Paperboy to build with nix and patiently explained some of the basics to me.
- OsugiSakae and bri-an on reddit helped me with an annoying performance issue!
- Nils Steinger for feature contributions.
- Adrian Sieber for contributing.
The name 'Paperboy' is a reference to this game, which I had for the NES and never quite mastered.