code: def _context(self):
          
          # Show/hide context
          if self.search_string:
              # Reset search when toggling compact mode
              footerwid = urwid.AttrMap(urwid.Text(""), 'default')
              self.top.footer = footerwid
              self.search_string = ""
              self.items = self.items_orig
          fpo = self.top.body.focus_position
          self.items, self.items_com = self.items_com, self.items
          self.top.body = urwid.ListBox(self.items)
          self.top.body.focus_position = self._cur_focus(fpo)
          self.compact = not self.compact
docs: c