docs: function shorten(term, match, opts) {
    var matchOpts = {pre: opts.pre, post: opts.post};
    var shared = util.getUnion(term, match.dir);
    var cutoff = shared.lastIndexOf(path.sep) + 1;
    match.dir = match.dir.slice(cutoff);
    match.shared = shared.slice(0, cutoff);
  
    var filepath = path.join(match.dir, match.file);
    term = getRelativeTerm(term, match.shared);
  
    var relativeMatch = fuzzy.match(term, filepath, matchOpts);
    if(relativeMatch) {
      match.rendered = relativeMatch.rendered;
    }
  }