예제 #1
0
def accept_search(event: E) -> None:
    """
    When enter pressed in isearch, quit isearch mode. (Multiline
    isearch would be too complicated.)
    (Usually bound to Enter.)
    """
    search.accept_search()
def accept_search(event):
    """
    When enter pressed in isearch, quit isearch mode. (Multiline
    isearch would be too complicated.)
    (Usually bound to Enter.)
    """
    search.accept_search()
예제 #3
0
def accept_search_and_accept_input(event: E) -> None:
    """
    Accept the search operation first, then accept the input.
    """
    search.accept_search()
    event.current_buffer.validate_and_handle()
def accept_search_and_accept_input(event):
    """
    Accept the search operation first, then accept the input.
    """
    search.accept_search()
    event.current_buffer.validate_and_handle()
예제 #5
0
 def accept_search(event):
     search.accept_search()
예제 #6
0
 def accept_search(event):
     search.accept_search()
     new_line, _ = self._doc.translate_index_to_position(
         self._buf.cursor_position)
     self.sync_cursor_to_line(new_line)