code: def enter_history(self):
          
          app = get_app()
          app.vi_state.input_mode = InputMode.NAVIGATION
  
          def done(f):
              result = f.result()
              if result is not None:
                  self.default_buffer.text = result
  
              app.vi_state.input_mode = InputMode.INSERT
  
          history = History(self, self.default_buffer.document)
  
          future = run_coroutine_in_terminal(history.app.run_async)
          future.add_done_callback(done)
docs: Display the history.