nullprogram.com/blog/2010/09/30/
Here's another bit of code I started using recently. I often find
myself wanting to open — or reopen
after kill-matching-buffers
— all the files under a
specific point in the file system. I'm using it at work now to open up
all the source files in a deep Java source tree on small-ish
project. Once it's all open I can switch to any file quickly
with
ido's fuzzy matching, flattening out the directory structure a
bit. (And the ridiculous "security" software at work imposes a
3-second I/O block when opening files, so I get to pay this all up
front at once rather than having it later
break my
flow.)
This just recursively travels down the sub-directories opening a
buffer for everything it comes across. It ignores dot-files, like the
ones your source control might litter.
One caveat: if you have a symbolic link that creates a file system
loop, this will probably get hung on it.