Windex Cleans Up Your Index

Published June 24th, 2010 at 12:54 pm February 19th, 2012 by (JavaScript must be enabled to view this email address)

Sketchbook Archives

Alas, the poor directory listing. While this view is one of the most ancient (if not the oldest) in all of computing GUI, rarely does it ever get any attention. It's especially unfortunate as I find myself spending a good part of my day navigating through them.

I love working with MAMP. I've set up my MAMP root to my general project folder, which provides access to any interior file (PSD, build-out dev files, reference docs) through a local URL. This enables using browsers' smart-find/auto-complete on URLs for finding folders which house working protoypes or sites. Piggy-backing on my last sketchbook post, I can leverage MAMP to view local files on my iPhone, or share said files with my fellow rock-star employees at nclud.

But the draw-back is that I find myself sifting through a mess of un-styled directory listings. While you can change some options with .htaccess, there is no functionality for adding a universal CSS stylesheet. But I'm a designer, and dag-nabbit, I don't have to deal with this.

I'm happy to release Windex. In minimalist fashion, Windex was developed to provide a mechanism to style default directory listings using much of same mark-up. You won't get any PHP/jQuery wizardry, but you're free to add it using your own discretion. This project was developed as a fork of Indices by Scott Evans. Installation instructions may be found on the GitHub README.

Take a gander at the demo. Included you'll find several refined styles. Foxy mimics Firefox's lovely local directory view; Opry mimics Opera's. There are some lovely OSX icon replacements. Any README file automatically gets parsed and appended to the directory list, a la GitHub. And that's not all. The real selling-point for Windex is the mobile/iPhone-optimized stylesheet. Load up the directory on your iPhone (or shrink your browser window to be less than 480px wide), and you'll be treated to the familiar table view. Oh yeah, it's iPhone 4 Retina Display ready.

Windex screenshot, foxy style

Windex screenshot, opry style

Windex iPhone screenshot

Windex was developed primarily for local applications, but will do wonders to pretty-up any files/ directory you have on your site. Just be careful where you enable Windex. You don't want to expose any of the logic running your site.

Windex is open-source, so feel free to fork this project, develop your own CSS, or provide feedback on its development. Now go forth, and list directories with style!

Have Your Say

  1. Antione Butler

    June 24th 2010

    Dangit Dave you’ve done it again. Maybe it has minimal use and even a niche audience but it sure makes the occasional use of directory listings a pleasure to use.

    Well done.

  2. Dave DeSandro

    June 24th 2010

    @Antione Thank you!

    I should also mention that another good resource in this space would be PHP Directory Lister by Greg J.  Mike Taylor’s test directory is a good example. It’s sweet because its all just one file, no futzing with folders and .htaccess like you have with Windex.

  3. Jason Beaird

    June 24th 2010

    As I mentioned on Twitter already, this looks awesome. I’m definitely not a lawyer, but as someone who as has experienced IP legal pressure before though, I’m worried about the name. Windex is a well-established trademark. You’re specifically asking for trouble by advertising that it’s associated with cleaning. Perhaps “nDex” would be a good compromise?

  4. Jason Beaird

    June 24th 2010

    ...or FTWdex? :)

  5. Dave DeSandro

    June 24th 2010

    @Jason Both great names. If we ever do get the attention of SC Johnson, we hopefully fallback to another name.

    So far we’ve been lucky on this front. Toho hasn’t been knocking down our doors about our resource. *knocks on wood*

  6. bradee

    June 30th 2010

    Why not just leave it as indicies?

  7. Dave DeSandro

    June 30th 2010

    @Bradee Naming projects that are mods like this one are hard.  Do you keep the original name “Original - My Mod” or name it something completely different?  I suppose its a branding decision. 

    Because Indices is still a good solution, I didn’t want to completely take over the name. Since I contributed it a good amount, I felt like it was appropriate to give it its own name.  Who knows, someone may fork this project and give it a new name.  So it goes…

  8. sainraja

    July 15th 2010

    ....may give foxy a try

  9. Scott

    July 25th 2010

    Not very friendly with the EVO 4G and other larger-screen mobiles, unfortunately. Even if forcing the iPhone theme, everything is still rather tiny. Any thoughts on how to improve on that area?

    Otherwise, this is a very nice and well thought out utility.

  10. Dave DeSandro

    July 26th 2010

    @Scott Your comment has been added as an issue on GitHub.

  11. Andy

    July 26th 2010

    Very handy. Thanks!

  12. Sojan V Jose

    January 6th 2011

    this one looks really kwel :) . found it on tumbler and i like the way those directory listings look

  13. Commenting is not available.
Windex Cleans Up Your Index

May 2012

S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31