class_docstr: A subclass of AutoSuggestFromHistory that allow navigation to next/previous
  suggestion from history. To do so it remembers the current position, but it
  state need to carefully be cleared on the right events.
class_docstr_tok: ["A","subclass","of","AutoSuggestFromHistory","that","allow","navigation","to","next\/previous","suggestion","from","history",".","To","do","so","it","remembers","the","current","position",",","but","it","state","need","to","carefully","be","cleared","on","the","right","events","."]
code: def down(self, query: str, other_than: str, history: History) -> None:
      for suggestion, line_number in self._find_previous_match(
          query, self.skip_lines, history
      ):
          if query + suggestion != other_than:
              self.skip_lines = line_number
              break
      else:
          # no matches found, cycle to end
          for suggestion, line_number in self._find_previous_match(
              query, float("Inf"), history
          ):
              if query + suggestion != other_than:
                  self.skip_lines = line_number
                  break
  
imports: import re
  import tokenize
  from io import StringIO
  from typing import Callable, List, Optional, Union, Generator, Tuple
  import warnings
  from prompt_toolkit.buffer import Buffer
  from prompt_toolkit.key_binding import KeyPressEvent
  from prompt_toolkit.key_binding.bindings import named_commands
  from prompt_toolkit.auto_suggest import AutoSuggestFromHistory, Suggestion
  from prompt_toolkit.document import Document
  from prompt_toolkit.history import History
  from prompt_toolkit.shortcuts import PromptSession
  from prompt_toolkit.layout.processors import Processor, Transformation, TransformationInput
  from IPython.core.getipython import get_ipython
  from IPython.utils.tokenutil import generate_tokens
  from .filters import pass_through
label_desc: Use image node_id 11 for calling the NavigableAutoSuggestFromHistory obj's underlying member method code with example usage: obj.down(query, other_than, history) without return types