One of the (mostly) good things about open source programs is that if something doesn’t work quite the way you want it to, then you’re able to hack it into a more acceptable shape. In this case, I added a larger preview and OCR support to a PDF metadata editor, as well as making a command-line unicode picker a lot more effortless to use in tmux
.
A while back I was working on a very crude thing to be able to edit PDF metadata quickly and easily. It… wasn’t good. And then I stumbled across PDFMtEd:
It pretty much did what I wanted, with some really wonderful and skillful use of yad, but it was missing a few things — namely a preview big enough to be able to see what you were looking at, whether the PDF had been OCR’d already, and allowing you to trigger that OCR the same way that it triggers the renaming on exit.
So I added it.
While I’ve submitted a pull request, there’s others sitting there since 2021, so you might just want to look at my branch of PDFMtEd here: https://github.com/uriel1998/PDFMtEd
In a similar fashion, unipicker has a lot of the functionality I was looking for in order to insert unicode characters (including emojis) while working in the terminal. (My specific use case was emojis while using gomuks but the principle applies regardless.
I realized that with newer (after version 0.53) of fzf, if you were using tmux
you could have a nice little popup instead of having a whole new pane or window. So I added some code to check the versions and environment, and with a line added to your tmux
configuration, you can get behavior like this:
The hotkey pops up the window, and then once selected, my cursor is put back right where I was, ready to paste the selected item.
As with PDFMtEd, I’ve submitted a pull request, but it’s been 10 months since a commit, so in the meantime, here’s my branch: https://github.com/uriel1998/unipicker