Is there an easy way to have arbitrary text editors call special logic based on a file extension?
For example, let's say I had a zip file that had a collection of files.
text.txt image.jpg othercrap.crap Is there a way to have text editors automatically run commands when opening the file via something like vi myarchive.zip based on the file extension?