jQuery.TrimPath

A plugin for intelligent path trimming. Just specify target width and the path will be shortened in a smart way.

Drive letter and file extension are always preserved. Filename and deepest folder’s name are also kept untouched if possible. Remaining directories are trimmed right-to-left.