code: def _shorten(self):
          
          # Toggle shortened URL for selected item
          fpo = self.top.body.focus_position
          url_idx = len([i for i in self.items[:fpo + 1]
                         if isinstance(i, urwid.Columns)]) - 1
          if self.compact is False and fpo <= 1:
              return
          url = self.urls[url_idx]
          short = not "..." in self.items[fpo][1].label
          self.items[fpo][1].set_label(shorten_url(url, self.size[0], short))
docs: s