original_docstring: Find history items which contain a given string
  
          :param search: the string to search for
          :return: a list of history items, or an empty list if the string was not found
          
docstring: Find history items which contain a given string
docstring_tokens: Find history items which contain a given string
code: def str_search(self, search: str) -> List[HistoryItem]:
          """Find history items which contain a given string
  
          :param search: the string to search for
          :return: a list of history items, or an empty list if the string was not found
          """
          def isin(history_item):
              """filter function for string search of history"""
              sloppy = utils.norm_fold(search)
              return sloppy in utils.norm_fold(history_item) or sloppy in utils.norm_fold(history_item.expanded)
          return [item for item in self if isin(item)]
code_tokens: def str_search ( self , search : str ) -> List [ HistoryItem ] : def isin ( history_item ) : """filter function for string search of history""" sloppy = utils . norm_fold ( search ) return sloppy in utils . norm_fold ( history_item ) or sloppy in utils . norm_fold ( history_item . expanded ) return [ item for item in self if isin ( item ) ]
short_docstring: Find history items which contain a given string
short_docstring_tokens: Find history items which contain a given string
comment: """Find history items which contain a given string
  
          :param search: the string to search for
          :return: a list of history items, or an empty list if the string was not found
          """$SEP$"""filter function for string search of history"""