OILS / pyext / line_input.pyi View on Github | oils.pub

61 lines, 31 significant
1from typing import Callable, List, Optional
2from core.state import Mem
3
4
5def parse_and_bind(s: str) -> None: ...
6
7def read_init_file(s: str) -> None: ...
8
9def add_history(line: str) -> None: ...
10
11def read_history_file(path: Optional[str] = None) -> None: ...
12
13def write_history_file(path: Optional[str] = None) -> None: ...
14
15def set_completer(completer: Optional[Callable[[str, int], str]] = None) -> None: ...
16
17def set_completer_delims(delims: str) -> None: ...
18
19def set_completion_display_matches_hook(hook: Optional[Callable[[str, List[str], int], None]] = None) -> None: ...
20
21def get_line_buffer() -> str: ...
22
23def get_begidx() -> int: ...
24
25def get_endidx() -> int: ...
26
27def clear_history() -> None: ...
28
29def get_history_item(pos: int) -> str: ...
30
31def remove_history_item(pos: int) -> None: ...
32
33def get_current_history_length() -> int: ...
34
35def resize_terminal() -> None: ...
36
37def list_funmap_names() -> None: ...
38
39def function_dumper(print_readably: bool) -> None: ...
40
41def macro_dumper(print_readably: bool) -> None: ...
42
43def variable_dumper(print_readably: bool) -> None: ...
44
45def query_bindings(fn_name: str) -> None: ...
46
47def unbind_rl_function(fn_name: str) -> None: ...
48
49def unbind_shell_cmd() -> None: ...
50
51def use_temp_keymap(keymap_name: str) -> None: ...
52
53def restore_orig_keymap() -> None: ...
54
55def print_shell_cmd_map() -> None: ...
56
57def unbind_keyseq(keyseq: str) -> None: ...
58
59def bind_shell_command(keyseq: str, cmd: str) -> None: ...
60
61def set_bind_shell_command_hook(hook: Callable[[str, str, int], (str, str)]) -> None: ...