How do you people manage/organize/index downloaded PDF & other type files?

I keep my ebooks(pdf and epub) on my home server(FreeBSD 14.3), I access them through NFS.
It is one dir called "ebooks" which contains several others dirs, one dir equals one category.
Code:
ebooks/shell
ebooks/bsd
ebooks/web
...
Determining what book belongs to which category was probably the most boring part.
All books have been renamed according to a specific syntax, no white space, no punctuation marks except dash and dot, and everything is in lowercase.
I did that with sysutils/p5-File-Rename, be careful with it though, make a good use of dry-run option because things can quickly turn quite wrong (regex power).

To search a book I made a shell script that basically fuzzy search (by using /usr/bin/find and textproc/fzy) through the ebook dir according to an argument passed to it, and opens it either with graphics/zathura if it's a pdf or deskutils/foliate if it's an epub.


Regarding text files, they are mostly my wiki, my draft, my code sometimes, my snippets, etc ... basically every thing I write goes into my notes at some point.
They are in my home in one dir called "notes".
To manage them, I made a script that relies again on textproc/fzy, with it I write/edit/delete/search/list/show notes.
In order to have some categories(kind of) every note name has a prefix, which help me to make a search later.
Code:
notes/wiki.mystuff1
notes/wiki.mystuff2
notes/wiki.mystuff3
notes/code.hello1
notes/code.hello2
notes/text.blabla1
...

In the past I used deskutils/zim or vimwiki to manage my notes, but I needed something simpler so I wrote my own thing, since I have no regrets.
 
I don't like directories as categories. Many PDFs belong in several categories and symlinks would make it messy.

If I play the filename game I rename the pdf to a pretty long name that is both descriptive and has tags and categories as words in it.

Then you can use find(1) on the tree.
 
Back
Top