zsh we can levy the power of named folders to ease the task of dealing with Johnny.Decimal folders.
There are two approaches to this:
- First, figure out at each call if there is a jd folder corresponding to the number
- Second, create a hash table that is renewed periodically (or better, using incron), since jd folders don’t change on a daily basis.
In the following posts, I will detail the two approaches, as I’ve been using the first for some months now, but am passing on to the second, as the first causes unnecessary lag imho.
THE FIRST APPROACH IS HERE FOR HISTORIC AND PAEDAGOGICAL REASONS ONLY
In the end, you get something like that (yes, I know, I’ve got a lot of stuff to do):