tacostakohashi
an hour ago
I use a simple two-level hierarchy. If you add one extra level to what you have, I think you'll find it works pretty well.
medical/eye-doctor
medical/dermatologist
bankA/account1234
bankA/account5678
bankB/account9999
https://johnnydecimal.com/ is a slightly more elaborate system. The basic idea is the same though, just have a fixed number of levels, it turns out 2 levels works very well. You don't need to overthink the categories at each level too much, e.g. maybe bankA + bankB could be "finance" instead.
finance/bankA-account1234
finance/bankA-account5678
finance/bankB-account9999
If there number of second-level directories gets out of hand, split it up into multiple, more-specific top level directories. If you just have 1 or two second-level directories, combine into a more generic top level directory.
Lets say you end up with 20 ish top level directories, and they each have 20 ish second level directories... now you cn have 400 ish directories (which is plenty), but you only have one "screenful" at each level to ls, navigate, etc.
Within each folder, the files are named YYYY-MM-DD-some-name.pdf. The second level folders are generally some individual/organization/account, and all the things pertaining to that relationship go in there - so, the eye doctor receipt goes in:
medical/joe-smith-md/2024-09-25-receipt.pdf
The joe-smith-md subfolder has all the things from that doctor... receipts, prescriptions, charts, whatever, with dated filenames.