code: def search_subreddit(self, name=None):
          
          name = name or self.content.name
  
          query = self.term.prompt_input('Search {0}: '.format(name))
          if not query:
              return
  
          with self.term.loader('Searching'):
              self.content = SubredditContent.from_name(
                  self.reddit, name, self.term.loader, query=query)
          if not self.term.loader.exception:
              self.nav = Navigator(self.content.get)
docs: Open a prompt to search the given subreddit