code: def disambiguate_fname(files_path_list, filename):
      
      fname = os.path.basename(filename)
      same_name_files = get_same_name_files(files_path_list, fname)
      if len(same_name_files) > 1:
          compare_path = shortest_path(same_name_files)
          if compare_path == filename:
              same_name_files.remove(path_components(filename))
              compare_path = shortest_path(same_name_files)    
          diff_path = differentiate_prefix(path_components(filename),
                                               path_components(compare_path))
          diff_path_length = len(diff_path)
          path_component = path_components(diff_path)
          if (diff_path_length > 20 and len(path_component) > 2):
              if path_component[0] != '/' and path_component[0] != '':
                  path_component = [path_component[0], '...', 
                                            path_component[-1]]
              else:
                  path_component = [path_component[2], '...', 
                                            path_component[-1]]
              diff_path = os.path.join(*path_component)
          fname = fname + " - " + diff_path    
      return fname
docs: Get tab title without ambiguation.