mui 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +2 -22
  3. data/.ruby-lsp.yml +19 -0
  4. data/CHANGELOG.md +48 -0
  5. data/README.md +17 -0
  6. data/docs/configuration.md +40 -0
  7. data/docs/getting-started.md +1 -1
  8. data/docs/keybindings.md +4 -0
  9. data/lib/mui/buffer.rb +1 -1
  10. data/lib/mui/buffer_word_cache.rb +2 -3
  11. data/lib/mui/command_completer.rb +4 -2
  12. data/lib/mui/command_line.rb +7 -2
  13. data/lib/mui/completion_renderer.rb +1 -1
  14. data/lib/mui/config.rb +3 -1
  15. data/lib/mui/editor.rb +3 -0
  16. data/lib/mui/file_completer.rb +10 -10
  17. data/lib/mui/insert_completion_renderer.rb +1 -1
  18. data/lib/mui/key_code.rb +5 -0
  19. data/lib/mui/key_handler/base.rb +2 -0
  20. data/lib/mui/key_handler/command_mode.rb +1 -1
  21. data/lib/mui/key_handler/insert_mode.rb +30 -0
  22. data/lib/mui/key_handler/normal_mode.rb +21 -0
  23. data/lib/mui/key_handler/visual_mode.rb +3 -1
  24. data/lib/mui/key_notation_parser.rb +13 -4
  25. data/lib/mui/mode_manager.rb +15 -27
  26. data/lib/mui/register.rb +36 -0
  27. data/lib/mui/screen.rb +5 -3
  28. data/lib/mui/search_completer.rb +1 -1
  29. data/lib/mui/search_input.rb +3 -3
  30. data/lib/mui/search_state.rb +11 -2
  31. data/lib/mui/status_line_renderer.rb +3 -5
  32. data/lib/mui/syntax/lexers/markdown_lexer.rb +1 -1
  33. data/lib/mui/terminal_adapter/curses.rb +40 -46
  34. data/lib/mui/unicode_width.rb +1 -1
  35. data/lib/mui/version.rb +1 -1
  36. data/lib/mui/window.rb +8 -0
  37. data/lib/mui/window_manager.rb +2 -5
  38. data/lib/mui/wrap_helper.rb +3 -3
  39. data/sig/lib/mui/autocmd.rbs +12 -0
  40. data/sig/lib/mui/buffer.rbs +52 -0
  41. data/sig/lib/mui/buffer_word_cache.rbs +21 -0
  42. data/sig/lib/mui/buffer_word_completer.rbs +15 -0
  43. data/sig/lib/mui/color_manager.rbs +20 -0
  44. data/sig/lib/mui/color_scheme.rbs +14 -0
  45. data/sig/lib/mui/command_completer.rbs +11 -0
  46. data/sig/lib/mui/command_context.rbs +24 -0
  47. data/sig/lib/mui/command_history.rbs +20 -0
  48. data/sig/lib/mui/command_line.rbs +24 -0
  49. data/sig/lib/mui/command_registry.rbs +14 -0
  50. data/sig/lib/mui/completion_renderer.rbs +14 -0
  51. data/sig/lib/mui/completion_state.rbs +20 -0
  52. data/sig/lib/mui/config.rbs +20 -0
  53. data/sig/lib/mui/editor.rbs +54 -0
  54. data/sig/lib/mui/error.rbs +18 -0
  55. data/sig/lib/mui/file_completer.rbs +13 -0
  56. data/sig/lib/mui/floating_window.rbs +30 -0
  57. data/sig/lib/mui/handler_result.rbs +38 -0
  58. data/sig/lib/mui/highlight.rbs +14 -0
  59. data/sig/lib/mui/highlighters/base.rbs +15 -0
  60. data/sig/lib/mui/highlighters/search_highlighter.rbs +11 -0
  61. data/sig/lib/mui/highlighters/selection_highlighter.rbs +13 -0
  62. data/sig/lib/mui/highlighters/syntax_highlighter.rbs +20 -0
  63. data/sig/lib/mui/input.rbs +10 -0
  64. data/sig/lib/mui/insert_completion_renderer.rbs +15 -0
  65. data/sig/lib/mui/insert_completion_state.rbs +23 -0
  66. data/sig/lib/mui/job.rbs +27 -0
  67. data/sig/lib/mui/job_manager.rbs +20 -0
  68. data/sig/lib/mui/key_code.rbs +29 -0
  69. data/sig/lib/mui/key_handler/base.rbs +35 -0
  70. data/sig/lib/mui/key_handler/command_mode.rbs +56 -0
  71. data/sig/lib/mui/key_handler/insert_mode.rbs +42 -0
  72. data/sig/lib/mui/key_handler/motions/motion_handler.rbs +19 -0
  73. data/sig/lib/mui/key_handler/normal_mode.rbs +55 -0
  74. data/sig/lib/mui/key_handler/operators/base_operator.rbs +29 -0
  75. data/sig/lib/mui/key_handler/operators/change_operator.rbs +22 -0
  76. data/sig/lib/mui/key_handler/operators/delete_operator.rbs +22 -0
  77. data/sig/lib/mui/key_handler/operators/paste_operator.rbs +19 -0
  78. data/sig/lib/mui/key_handler/operators/yank_operator.rbs +20 -0
  79. data/sig/lib/mui/key_handler/search_mode.rbs +25 -0
  80. data/sig/lib/mui/key_handler/visual_line_mode.rbs +11 -0
  81. data/sig/lib/mui/key_handler/visual_mode.rbs +43 -0
  82. data/sig/lib/mui/key_handler/window_command.rbs +20 -0
  83. data/sig/lib/mui/key_handler.rbs +4 -0
  84. data/sig/lib/mui/key_notation_parser.rbs +16 -0
  85. data/sig/lib/mui/key_sequence.rbs +18 -0
  86. data/sig/lib/mui/key_sequence_buffer.rbs +18 -0
  87. data/sig/lib/mui/key_sequence_handler.rbs +24 -0
  88. data/sig/lib/mui/key_sequence_matcher.rbs +14 -0
  89. data/sig/lib/mui/layout/calculator.rbs +10 -0
  90. data/sig/lib/mui/layout/leaf_node.rbs +16 -0
  91. data/sig/lib/mui/layout/node.rbs +24 -0
  92. data/sig/lib/mui/layout/split_node.rbs +29 -0
  93. data/sig/lib/mui/line_renderer.rbs +18 -0
  94. data/sig/lib/mui/mode.rbs +14 -0
  95. data/sig/lib/mui/mode_manager.rbs +33 -0
  96. data/sig/lib/mui/motion.rbs +24 -0
  97. data/sig/lib/mui/plugin.rbs +17 -0
  98. data/sig/lib/mui/plugin_manager.rbs +20 -0
  99. data/sig/lib/mui/register.rbs +21 -0
  100. data/sig/lib/mui/screen.rbs +21 -0
  101. data/sig/lib/mui/search_completer.rbs +11 -0
  102. data/sig/lib/mui/search_input.rbs +17 -0
  103. data/sig/lib/mui/search_state.rbs +22 -0
  104. data/sig/lib/mui/selection.rbs +21 -0
  105. data/sig/lib/mui/status_line_renderer.rbs +12 -0
  106. data/sig/lib/mui/syntax/language_detector.rbs +16 -0
  107. data/sig/lib/mui/syntax/lexer_base.rbs +16 -0
  108. data/sig/lib/mui/syntax/lexers/c_lexer.rbs +19 -0
  109. data/sig/lib/mui/syntax/lexers/css_lexer.rbs +19 -0
  110. data/sig/lib/mui/syntax/lexers/go_lexer.rbs +26 -0
  111. data/sig/lib/mui/syntax/lexers/html_lexer.rbs +19 -0
  112. data/sig/lib/mui/syntax/lexers/javascript_lexer.rbs +26 -0
  113. data/sig/lib/mui/syntax/lexers/markdown_lexer.rbs +24 -0
  114. data/sig/lib/mui/syntax/lexers/ruby_lexer.rbs +18 -0
  115. data/sig/lib/mui/syntax/lexers/rust_lexer.rbs +21 -0
  116. data/sig/lib/mui/syntax/lexers/typescript_lexer.rbs +26 -0
  117. data/sig/lib/mui/syntax/token.rbs +16 -0
  118. data/sig/lib/mui/syntax/token_cache.rbs +16 -0
  119. data/sig/lib/mui/tab_bar_renderer.rbs +23 -0
  120. data/sig/lib/mui/tab_manager.rbs +23 -0
  121. data/sig/lib/mui/tab_page.rbs +16 -0
  122. data/sig/lib/mui/terminal_adapter/base.rbs +31 -0
  123. data/sig/lib/mui/terminal_adapter/curses.rbs +31 -0
  124. data/sig/lib/mui/terminal_adapter.rbs +4 -0
  125. data/sig/lib/mui/themes/default.rbs +15 -0
  126. data/sig/lib/mui/undo_manager.rbs +20 -0
  127. data/sig/lib/mui/undoable_action.rbs +56 -0
  128. data/sig/lib/mui/unicode_width.rbs +12 -0
  129. data/sig/lib/mui/version.rbs +6 -0
  130. data/sig/lib/mui/window.rbs +49 -0
  131. data/sig/lib/mui/window_manager.rbs +37 -0
  132. data/sig/lib/mui/wrap_cache.rbs +14 -0
  133. data/sig/lib/mui/wrap_helper.rbs +11 -0
  134. data/sig/lib/mui.rbs +24 -0
  135. data/sig/typeprof.rbs +42 -0
  136. data/typeprof.conf.jsonc +6 -0
  137. metadata +116 -4
  138. data/sig/mui.rbs +0 -4
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/completion_state.rb
4
+ module Mui
5
+ class Mui::CompletionState
6
+ def candidates: -> []
7
+ def selected_index: -> (Integer | Numeric)
8
+ def original_input: -> nil
9
+ def completion_type: -> nil
10
+ def initialize: -> void
11
+ def reset: -> false
12
+ def active?: -> bool
13
+ def start: (untyped, untyped, untyped) -> false
14
+ def confirm: -> true
15
+ def confirmed?: -> bool
16
+ def select_next: -> (Integer | Numeric)?
17
+ def select_previous: -> (Integer | Numeric)?
18
+ def current_candidate: -> nil
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/config.rb
4
+ module Mui
5
+ class Config
6
+ def options: -> Hash[:colorscheme | :expandtab | :leader | :reselect_after_indent | :shiftwidth | :syntax | :tabstop | :timeoutlen | :use_yjit, Integer | String | bool]
7
+ def plugins: -> []
8
+ def keymaps: -> Hash[untyped, Hash[untyped, untyped]]
9
+ def commands: -> Hash[untyped, untyped]
10
+ def autocmds: -> Hash[untyped, []]
11
+ def initialize: -> void
12
+ def set: (untyped, untyped) -> untyped
13
+ def get: (untyped) -> (Integer | String | bool)
14
+ def load_file: (untyped) -> nil
15
+ def use_plugin: (untyped, ?nil) -> []
16
+ def add_keymap: (untyped, untyped, untyped) -> untyped
17
+ def add_command: (untyped, untyped) -> untyped
18
+ def add_autocmd: (untyped, untyped, untyped) -> []
19
+ end
20
+ end
@@ -0,0 +1,54 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/editor.rb
4
+ module Mui
5
+ class Mui::Editor
6
+ def tab_manager: -> untyped
7
+ def undo_manager: -> untyped
8
+ def autocmd: -> untyped
9
+ def command_registry: -> untyped
10
+ def job_manager: -> untyped
11
+ def color_scheme: -> untyped
12
+ def floating_window: -> untyped
13
+ def insert_completion_state: -> untyped
14
+ def key_sequence_handler: -> untyped
15
+ def message: -> nil
16
+ def message=: (untyped) -> nil
17
+ def running: -> bool
18
+ def running=: (untyped) -> bool
19
+ def initialize: (?nil, ?adapter: untyped, ?load_config: true) -> void
20
+ def window_manager: -> untyped
21
+ def window: -> untyped
22
+ def buffer: -> untyped
23
+ def mode: -> untyped
24
+ def selection: -> untyped
25
+ def register: -> untyped
26
+ def run: -> nil
27
+ def open_scratch_buffer: (untyped, untyped) -> untyped
28
+ def update_or_create_scratch_buffer: (untyped, untyped) -> bool
29
+ def find_scratch_buffer: (untyped) -> nil
30
+ def focus_buffer: (untyped) -> bool
31
+ def suspend_ui: { () -> untyped } -> untyped
32
+ def handle_key: (untyped) -> nil
33
+ def trigger_autocmd: (:BufEnter | :TextChanged) -> untyped
34
+ def show_floating: (untyped, ?max_width: nil, ?max_height: nil) -> untyped
35
+ def hide_floating: -> untyped
36
+ def start_insert_completion: (untyped, ?prefix: String) -> untyped
37
+ def insert_completion_active?: -> untyped
38
+ def buffer_content_changed?: -> untyped
39
+ def update_window_size: -> untyped
40
+ def render: -> untyped
41
+ def tab_bar_height: -> untyped
42
+ def render_status_area: -> untyped
43
+ def render_search_completion_popup: -> nil
44
+ def render_completion_popup: -> nil
45
+ def render_insert_completion_popup: -> nil
46
+ def apply_result: (untyped) -> false?
47
+ def load_color_scheme: -> untyped
48
+ def load_plugin_autocmds: -> untyped
49
+ def process_job_results: -> untyped
50
+ def check_key_sequence_timeout: -> nil
51
+ def mode_to_symbol: (untyped) -> (:command | :insert | :normal | :search | :visual)
52
+ def execute_keymap_handler: (untyped) -> untyped
53
+ end
54
+ end
@@ -0,0 +1,18 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/error.rb
4
+ module Mui
5
+ class Mui::Error < StandardError
6
+ end
7
+ class Mui::MethodNotOverriddenError < Mui::Error
8
+ def initialize: (untyped) -> void
9
+ end
10
+ class Mui::PluginError < Mui::Error
11
+ end
12
+ class Mui::PluginNotFoundError < Mui::PluginError
13
+ def initialize: (untyped) -> void
14
+ end
15
+ class Mui::UnknownCommandError < Mui::Error
16
+ def initialize: (untyped) -> void
17
+ end
18
+ end
@@ -0,0 +1,13 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/file_completer.rb
4
+ module Mui
5
+ class Mui::FileCompleter
6
+ def complete: (untyped) -> (Array[String?] | Array[String])
7
+ def split_path: (untyped) -> ([String, String] | [untyped, String])
8
+ def list_directory: (String) -> (Array[String] | [])
9
+ def list_current_directory: -> Array[String]
10
+ def format_path: (String) -> String
11
+ def format_entry_to_path: (String, String) -> String
12
+ end
13
+ end
@@ -0,0 +1,30 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/floating_window.rb
4
+ module Mui
5
+ class Mui::FloatingWindow
6
+ def content: -> ([] | [untyped])
7
+ def row: -> Integer
8
+ def col: -> Integer
9
+ def width: -> Integer
10
+ def height: -> Integer
11
+ def last_bounds: -> Hash[:col | :height | :row | :width, Integer]?
12
+ def visible: -> bool
13
+ def visible=: (untyped) -> bool
14
+ def initialize: (untyped) -> void
15
+ def show: (untyped, row: untyped, col: untyped, ?max_width: nil, ?max_height: nil) -> false
16
+ def hide: -> []?
17
+ def needs_clear?: -> (Hash[:col | :height | :row | :width, Integer] | bool)?
18
+ def clear_last_bounds: (untyped) -> nil
19
+ def scroll_up: -> Integer?
20
+ def scroll_down: -> Integer?
21
+ def render: (untyped) -> Integer?
22
+ def normalize_content: (untyped) -> [untyped]
23
+ def calculate_dimensions: -> Integer?
24
+ def adjust_position: (untyped) -> [Integer, Integer]
25
+ def adjust_position_for_bounds: (untyped, Hash[:col | :height | :row | :width, Integer]?) -> [Integer, Integer]
26
+ def draw_border: (untyped, Integer, Integer) -> untyped
27
+ def draw_content: (untyped, Integer, Integer) -> Integer
28
+ def truncate_to_width: (String, Integer) -> String
29
+ end
30
+ end
@@ -0,0 +1,38 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/handler_result.rb
4
+ module Mui
5
+ module Mui::HandlerResult
6
+ class Mui::HandlerResult::Base
7
+ def mode: -> nil
8
+ def message: -> nil
9
+ def initialize: (?mode: nil, ?message: nil, ?quit: false, ?pending_sequence: false) -> void
10
+ def quit?: -> false
11
+ def pending_sequence?: -> false
12
+ def start_selection?: -> false
13
+ def line_mode?: -> false
14
+ def clear_selection?: -> false
15
+ def toggle_line_mode?: -> false
16
+ end
17
+ class Mui::HandlerResult::NormalModeResult < Mui::HandlerResult::Base
18
+ def initialize: (?mode: nil, ?message: nil, ?quit: false, ?pending_sequence: false, ?start_selection: false, ?line_mode: false, ?group_started: false) -> void
19
+ def start_selection?: -> false
20
+ def line_mode?: -> false
21
+ def group_started?: -> false
22
+ end
23
+ class Mui::HandlerResult::VisualModeResult < Mui::HandlerResult::Base
24
+ def initialize: (?mode: nil, ?message: nil, ?quit: false, ?pending_sequence: false, ?clear_selection: false, ?toggle_line_mode: false, ?group_started: false) -> void
25
+ def clear_selection?: -> false
26
+ def toggle_line_mode?: -> false
27
+ def group_started?: -> false
28
+ end
29
+ class Mui::HandlerResult::InsertModeResult < Mui::HandlerResult::Base
30
+ end
31
+ class Mui::HandlerResult::CommandModeResult < Mui::HandlerResult::Base
32
+ end
33
+ class Mui::HandlerResult::SearchModeResult < Mui::HandlerResult::Base
34
+ def initialize: (?mode: nil, ?message: nil, ?quit: false, ?pending_sequence: false, ?cancelled: false) -> void
35
+ def cancelled?: -> false
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,14 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/highlight.rb
4
+ module Mui
5
+ class Mui::Highlight
6
+ def start_col: -> untyped
7
+ def end_col: -> untyped
8
+ def style: -> untyped
9
+ def priority: -> untyped
10
+ def initialize: (start_col: untyped, end_col: untyped, style: untyped, priority: untyped) -> void
11
+ def overlaps?: (untyped) -> untyped
12
+ def <=>: (untyped) -> Integer?
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/highlighters/base.rb
4
+ module Mui
5
+ module Mui::Highlighters
6
+ class Mui::Highlighters::Base
7
+ Mui::Highlighters::Base::PRIORITY_SYNTAX: Integer
8
+ Mui::Highlighters::Base::PRIORITY_SELECTION: Integer
9
+ Mui::Highlighters::Base::PRIORITY_SEARCH: Integer
10
+ def initialize: (untyped) -> void
11
+ def highlights_for: (untyped, untyped, ?Hash[untyped, untyped]) -> untyped
12
+ def priority: -> Integer
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/highlighters/search_highlighter.rb
4
+ module Mui
5
+ module Mui::Highlighters
6
+ class Mui::Highlighters::SearchHighlighter # failed to identify its superclass
7
+ def highlights_for: (untyped, untyped, ?Hash[untyped, untyped]) -> []
8
+ def priority: -> untyped
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/highlighters/selection_highlighter.rb
4
+ module Mui
5
+ module Mui::Highlighters
6
+ class Mui::Highlighters::SelectionHighlighter # failed to identify its superclass
7
+ def highlights_for: (untyped, untyped, ?Hash[untyped, untyped]) -> ([] | [untyped])
8
+ def priority: -> untyped
9
+ def line_mode_highlights: (untyped) -> [untyped]
10
+ def char_mode_highlights: (untyped, untyped, untyped) -> [untyped]
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/highlighters/syntax_highlighter.rb
4
+ module Mui
5
+ module Mui::Highlighters
6
+ class Mui::Highlighters::SyntaxHighlighter # failed to identify its superclass
7
+ Mui::Highlighters::SyntaxHighlighter::TOKEN_STYLE_MAP: Hash[:char | :comment | :constant | :function_definition | :global_variable | :instance_variable | :keyword | :macro | :method_call | :number | :preprocessor | :regex | :string | :symbol | :type, :syntax_comment | :syntax_constant | :syntax_function_definition | :syntax_global_variable | :syntax_instance_variable | :syntax_keyword | :syntax_method_call | :syntax_number | :syntax_preprocessor | :syntax_string | :syntax_symbol | :syntax_type]
8
+ def initialize: (untyped, ?buffer: nil) -> void
9
+ def buffer=: (untyped) -> nil
10
+ def highlights_for: (untyped, untyped, ?Hash[untyped, untyped]) -> []
11
+ def priority: -> untyped
12
+ def invalidate_from: (untyped) -> nil
13
+ def clear_cache: -> nil
14
+ def prefetch: (untyped, untyped) -> nil
15
+ def active?: -> false
16
+ def setup_lexer: -> nil
17
+ def style_for_token_type: (untyped) -> (:syntax_comment | :syntax_constant | :syntax_function_definition | :syntax_global_variable | :syntax_instance_variable | :syntax_keyword | :syntax_method_call | :syntax_number | :syntax_preprocessor | :syntax_string | :syntax_symbol | :syntax_type)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,10 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/input.rb
4
+ module Mui
5
+ class Mui::Input
6
+ def initialize: (adapter: untyped) -> void
7
+ def read: -> untyped
8
+ def read_nonblock: -> untyped
9
+ end
10
+ end
@@ -0,0 +1,15 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/insert_completion_renderer.rb
4
+ module Mui
5
+ class Mui::InsertCompletionRenderer
6
+ Mui::InsertCompletionRenderer::MAX_VISIBLE_ITEMS: Integer
7
+ def initialize: (untyped, untyped) -> void
8
+ def render: (untyped, untyped, untyped) -> nil
9
+ def calculate_visible_range: (untyped, untyped) -> ([Integer, Integer] | [Integer, untyped])
10
+ def calculate_max_width: (untyped) -> Integer
11
+ def item_label: (untyped) -> untyped
12
+ def display_width: (untyped) -> untyped
13
+ def render_item: (untyped, untyped, Integer, Integer, untyped) -> untyped
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/insert_completion_state.rb
4
+ module Mui
5
+ class Mui::InsertCompletionState
6
+ def items: -> (Array[untyped] | [])
7
+ def selected_index: -> (Integer | Numeric)
8
+ def prefix: -> String
9
+ def original_items: -> []
10
+ def initialize: -> void
11
+ def reset: (?set_needs_clear: bool) -> String
12
+ def needs_clear?: -> bool
13
+ def clear_needs_clear: -> false
14
+ def active?: -> bool
15
+ def start: (untyped, ?prefix: String) -> String
16
+ def update_prefix: (untyped) -> Integer?
17
+ def select_next: -> (Integer | Numeric)?
18
+ def select_previous: -> (Integer | Numeric)?
19
+ def current_item: -> nil
20
+ def insert_text: -> String?
21
+ def text_edit_range: -> nil
22
+ end
23
+ end
@@ -0,0 +1,27 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/job.rb
4
+ module Mui
5
+ class Mui::Job
6
+ module Mui::Job::Status
7
+ Mui::Job::Status::PENDING: :pending
8
+ Mui::Job::Status::RUNNING: :running
9
+ Mui::Job::Status::COMPLETED: :completed
10
+ Mui::Job::Status::FAILED: :failed
11
+ Mui::Job::Status::CANCELLED: :cancelled
12
+ end
13
+ def id: -> untyped
14
+ def status: -> (:cancelled | :completed | :failed | :pending | :running)
15
+ def result: -> nil
16
+ def error: -> StandardError?
17
+ def initialize: (untyped) { () -> untyped } -> void
18
+ def run: -> nil
19
+ def cancel: -> false
20
+ def pending?: -> bool
21
+ def running?: -> bool
22
+ def completed?: -> bool
23
+ def failed?: -> bool
24
+ def cancelled?: -> bool
25
+ def finished?: -> bool
26
+ end
27
+ end
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/job_manager.rb
4
+ module Mui
5
+ class Mui::JobManager
6
+ def initialize: (?autocmd: nil) -> void
7
+ def run_async: (?on_complete: nil) -> untyped
8
+ def run_command: (untyped, ?on_complete: nil) -> untyped
9
+ def poll: -> []
10
+ def job: (untyped) -> untyped
11
+ def cancel: (untyped) -> false
12
+ def active_count: -> untyped
13
+ def busy?: -> untyped
14
+ def create_job: -> untyped
15
+ def generate_id: -> untyped
16
+ def remove_job: (untyped) -> untyped
17
+ def invoke_callback: (untyped) -> nil
18
+ def trigger_autocmd_event: (untyped) -> nil
19
+ end
20
+ end
@@ -0,0 +1,29 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_code.rb
4
+ module Mui
5
+ module Mui::KeyCode
6
+ Mui::KeyCode::ESCAPE: Integer
7
+ Mui::KeyCode::BACKSPACE: Integer
8
+ Mui::KeyCode::ENTER_CR: Integer
9
+ Mui::KeyCode::ENTER_LF: Integer
10
+ Mui::KeyCode::TAB: Integer
11
+ Mui::KeyCode::PRINTABLE_MIN: Integer
12
+ Mui::KeyCode::PRINTABLE_MAX: Integer
13
+ Mui::KeyCode::CTRL_SPACE: Integer
14
+ Mui::KeyCode::CTRL_C: Integer
15
+ Mui::KeyCode::CTRL_H: Integer
16
+ Mui::KeyCode::CTRL_J: Integer
17
+ Mui::KeyCode::CTRL_K: Integer
18
+ Mui::KeyCode::CTRL_L: Integer
19
+ Mui::KeyCode::CTRL_N: Integer
20
+ Mui::KeyCode::CTRL_O: Integer
21
+ Mui::KeyCode::CTRL_P: Integer
22
+ Mui::KeyCode::CTRL_S: Integer
23
+ Mui::KeyCode::CTRL_V: Integer
24
+ Mui::KeyCode::CTRL_W: Integer
25
+ Mui::KeyCode::SHIFT_LEFT: Integer
26
+ Mui::KeyCode::SHIFT_RIGHT: Integer
27
+ Mui::KeyCode::SHIFT_TAB: Integer
28
+ end
29
+ end
@@ -0,0 +1,35 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/base.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::MethodNotOverriddenError # failed to identify its superclass
7
+ end
8
+ class Mui::KeyHandler::Base
9
+ def mode_manager: -> untyped
10
+ def mode_manager=: (untyped) -> untyped
11
+ def initialize: (untyped, untyped) -> void
12
+ def window: -> untyped
13
+ def buffer: -> untyped
14
+ def editor: -> untyped
15
+ def undo_manager: -> untyped
16
+ def key_sequence_handler: -> untyped
17
+ def handle: (untyped) -> untyped
18
+ def check_plugin_keymap: (untyped, untyped) -> nil
19
+ def check_single_key_keymap: (untyped, untyped) -> nil
20
+ def execute_plugin_handler: (untyped, untyped) -> nil
21
+ def wrap_handler_result: (untyped, untyped) -> untyped
22
+ def convert_key_to_string: (untyped) -> String?
23
+ def cursor_row: -> untyped
24
+ def cursor_col: -> untyped
25
+ def cursor_row=: (untyped) -> untyped
26
+ def cursor_col=: (untyped) -> untyped
27
+ def current_line: -> untyped
28
+ def current_line_length: -> untyped
29
+ def extract_printable_char: (untyped) -> nil
30
+ def key_to_char: (untyped) -> nil
31
+ def execute_pending_motion: (untyped) -> nil
32
+ def result: (?mode: nil, ?message: nil, ?quit: false) -> untyped
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,56 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/command_mode.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::CommandMode # failed to identify its superclass
7
+ def completion_state: -> untyped
8
+ def initialize: (untyped, untyped, untyped) -> void
9
+ def handle: (untyped) -> untyped
10
+ def handle_escape: -> untyped
11
+ def handle_backspace: -> untyped
12
+ def handle_tab: -> untyped
13
+ def handle_shift_tab: -> untyped
14
+ def handle_cursor_left: -> untyped
15
+ def handle_cursor_right: -> untyped
16
+ def handle_history_up: -> untyped
17
+ def handle_history_down: -> untyped
18
+ def update_completion: -> nil
19
+ def apply_current_completion: -> nil
20
+ def handle_enter: -> untyped
21
+ def handle_character_input: (untyped) -> untyped
22
+ def execute_action: (untyped) -> bot
23
+ def try_plugin_command: (untyped) -> nil
24
+ def handle_open: -> untyped
25
+ def handle_write: -> untyped
26
+ def handle_quit: -> untyped
27
+ def handle_write_quit: -> untyped
28
+ def handle_force_quit: -> untyped
29
+ def close_or_quit: (?message: nil) -> untyped
30
+ def open_buffer: (?nil) -> untyped
31
+ def open_new_buffer: (untyped) -> untyped
32
+ def reload_current_buffer: -> untyped
33
+ def save_buffer: (?nil) -> untyped
34
+ def handle_split_horizontal: (?nil) -> bot
35
+ def handle_split_vertical: (?nil) -> bot
36
+ def handle_close_window: -> bot
37
+ def handle_only_window: -> bot
38
+ def with_window_manager: { (untyped) -> bot } -> bot
39
+ def with_tab_manager: { (untyped) -> untyped } -> untyped
40
+ def handle_tab_new: (?nil) -> untyped
41
+ def handle_tab_close: -> untyped
42
+ def handle_tab_next: -> untyped
43
+ def handle_tab_prev: -> untyped
44
+ def handle_tab_first: -> untyped
45
+ def handle_tab_last: -> untyped
46
+ def handle_tab_go: (untyped) -> untyped
47
+ def handle_tab_move: (untyped) -> untyped
48
+ def handle_goto_line: (untyped) -> untyped
49
+ def handle_shell_command: (untyped) -> untyped
50
+ def display_shell_result: (untyped, untyped) -> nil
51
+ def build_shell_output: (untyped, untyped) -> String
52
+ def create_buffer_from_path: (untyped) -> untyped
53
+ def result: (?mode: (String | true)?, ?message: String?, ?quit: (String | bool)?) -> untyped
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,42 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/insert_mode.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::InsertMode # failed to identify its superclass
7
+ def initialize: (untyped, untyped, ?undo_manager: nil, ?group_started: false) -> void
8
+ def handle: (untyped) -> untyped
9
+ def handle_escape: -> untyped
10
+ def strip_trailing_whitespace_if_empty_line: -> bool
11
+ def handle_move_left: -> untyped
12
+ def handle_move_right: -> untyped
13
+ def handle_move_up: -> untyped
14
+ def handle_move_down: -> untyped
15
+ def handle_line_start: -> untyped
16
+ def handle_line_end: -> untyped
17
+ def handle_shift_left: -> untyped
18
+ def handle_shift_right: -> untyped
19
+ def handle_backspace: -> untyped
20
+ def join_with_previous_line: -> untyped
21
+ def handle_enter: -> untyped
22
+ def extract_indent: (untyped) -> String
23
+ def handle_character_input: (untyped) -> untyped
24
+ def add_current_word_to_cache: -> nil
25
+ def update_completion_list: -> nil
26
+ def trigger_completion_for: (untyped) -> nil
27
+ def trigger_buffer_completion_if_needed: (?min_prefix: Integer) -> nil
28
+ def word_char?: (untyped) -> untyped
29
+ def previous_char: -> nil
30
+ def handle_buffer_completion: -> untyped
31
+ def handle_tab: -> untyped
32
+ def completion_active?: -> untyped
33
+ def handle_completion_next: -> untyped
34
+ def handle_completion_previous: -> untyped
35
+ def handle_completion_confirm: -> untyped
36
+ def apply_text_edit: (untyped, untyped) -> untyped
37
+ def apply_prefix_replacement: (untyped, untyped) -> untyped
38
+ def reset_insert_completion_state: -> nil
39
+ def result: (?mode: nil, ?message: nil, ?quit: false) -> untyped
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,19 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/motions/motion_handler.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ module Mui::KeyHandler::Motions
7
+ module Mui::KeyHandler::Motions::MotionHandler
8
+ def handle_word_forward: -> untyped
9
+ def handle_word_backward: -> untyped
10
+ def handle_word_end: -> untyped
11
+ def handle_line_start: -> untyped
12
+ def handle_first_non_blank: -> untyped
13
+ def handle_line_end: -> untyped
14
+ def handle_file_end: -> untyped
15
+ def apply_motion: (untyped) -> nil
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,55 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/normal_mode.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::NormalMode # failed to identify its superclass
7
+ def initialize: (untyped, untyped, ?nil, ?undo_manager: nil, ?search_state: nil) -> void
8
+ def handle: (untyped) -> untyped
9
+ def pending_sequence?: -> untyped
10
+ def builtin_operator_key?: (untyped) -> bool
11
+ def initialize_operators: -> Hash[:change | :delete | :paste | :yank, untyped]
12
+ def sync_operators: -> Hash[:change | :delete | :paste | :yank, untyped]
13
+ def handle_normal_key: (untyped) -> untyped
14
+ def handle_pending_motion: (untyped) -> untyped
15
+ def clear_pending: -> untyped
16
+ def handle_register_select: (untyped) -> untyped
17
+ def valid_register_name?: (untyped) -> bool
18
+ def handle_move_left: -> untyped
19
+ def handle_move_down: -> untyped
20
+ def handle_move_up: -> untyped
21
+ def handle_move_right: -> untyped
22
+ def handle_shift_left: -> untyped
23
+ def handle_shift_right: -> untyped
24
+ def handle_append: -> untyped
25
+ def handle_open_below: -> untyped
26
+ def handle_open_above: -> untyped
27
+ def handle_delete_char: -> untyped
28
+ def dispatch_delete_operator: (untyped) -> untyped
29
+ def dispatch_delete_to_file_start: (untyped) -> untyped
30
+ def dispatch_delete_find_char: (untyped) -> untyped
31
+ def dispatch_change_operator: (untyped) -> untyped
32
+ def dispatch_change_to_file_start: (untyped) -> untyped
33
+ def dispatch_change_find_char: (untyped) -> untyped
34
+ def dispatch_yank_operator: (untyped) -> untyped
35
+ def dispatch_yank_to_file_start: (untyped) -> untyped
36
+ def dispatch_yank_find_char: (untyped) -> untyped
37
+ def handle_paste_after: -> untyped
38
+ def handle_paste_before: -> untyped
39
+ def handle_operator_result: (untyped) -> untyped
40
+ def result: (?mode: String?, ?message: (String | true)?, ?quit: String | bool, ?start_selection: String | bool, ?line_mode: String | bool, ?group_started: String | bool) -> untyped
41
+ def readonly_error: -> untyped
42
+ def handle_undo: -> untyped
43
+ def handle_redo: -> untyped
44
+ def dispatch_window_command: (untyped) -> untyped
45
+ def dispatch_g_command: (untyped) -> untyped
46
+ def handle_restore_visual: -> untyped
47
+ def handle_tab_next: -> untyped
48
+ def handle_tab_prev: -> untyped
49
+ def handle_search_next: -> untyped
50
+ def handle_search_previous: -> untyped
51
+ def handle_search_word: (:backward | :forward) -> untyped
52
+ def word_under_cursor: -> nil
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,29 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/operators/base_operator.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ module Mui::KeyHandler::Operators
7
+ class Mui::KeyHandler::Operators::BaseOperator
8
+ def initialize: (buffer: untyped, window: untyped, register: untyped, ?undo_manager: nil) -> void
9
+ def update: (?buffer: nil, ?window: nil, ?register: nil, ?undo_manager: nil) -> nil
10
+ def handle_pending: (untyped, ?pending_register: nil) -> untyped
11
+ def buffer: -> untyped
12
+ def window: -> untyped
13
+ def register: -> untyped
14
+ def undo_manager: -> nil
15
+ def cursor_row: -> untyped
16
+ def cursor_col: -> untyped
17
+ def cursor_row=: (nil) -> untyped
18
+ def cursor_col=: (untyped) -> untyped
19
+ def extract_text: (untyped, untyped, ?inclusive: false) -> String
20
+ def extract_text_same_line: (untyped, untyped, ?inclusive: false) -> String
21
+ def extract_text_across_lines: (untyped, untyped, ?inclusive: false) -> String
22
+ def calculate_motion_end: (untyped) -> nil
23
+ def execute_delete: (untyped, untyped, ?inclusive: false, ?clamp: true) -> nil
24
+ def execute_delete_same_line: (untyped, untyped, ?inclusive: false, ?clamp: true) -> nil
25
+ def execute_delete_across_lines: (untyped, untyped, ?inclusive: false, ?clamp: true) -> nil
26
+ end
27
+ end
28
+ end
29
+ end