I've never used MidnightCommander. Actually, I wrote this for a friend of mine. He wanted something like this for use in shell scripts (I'm not sure why), and it needed to be "extension ignorant". I ended up spending a lot more time on it than I planned on, and voila! There it is.
A genius writes code an idiot can understand, while an idiot writes code the compiler can't understand.