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,22 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/operators/change_operator.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ module Mui::KeyHandler::Operators
7
+ class Mui::KeyHandler::Operators::ChangeOperator # failed to identify its superclass
8
+ def handle_pending: (untyped, ?pending_register: nil) -> (:cancel | :insert_mode | :pending_cF | :pending_cT | :pending_cf | :pending_cg | :pending_ct)
9
+ def handle_to_file_start: (untyped) -> (:cancel | :insert_mode)
10
+ def handle_find_char: (untyped, untyped) -> (:cancel | :insert_mode)
11
+ def change_line: -> :insert_mode
12
+ def change_motion: (:word_backward | :word_end | :word_forward) -> (:cancel | :insert_mode)
13
+ def change_to_line_start: -> :insert_mode
14
+ def change_to_line_end: -> :insert_mode
15
+ def change_to_file_end: -> :insert_mode
16
+ def change_to_line_start_internal: -> nil
17
+ def change_to_file_start_internal: -> untyped
18
+ def execute_find_char_change: (untyped, untyped) -> nil
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/operators/delete_operator.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ module Mui::KeyHandler::Operators
7
+ class Mui::KeyHandler::Operators::DeleteOperator # failed to identify its superclass
8
+ def handle_pending: (untyped, ?pending_register: nil) -> (:cancel | :done | :pending_dF | :pending_dT | :pending_df | :pending_dg | :pending_dt)
9
+ def handle_to_file_start: (untyped) -> (:cancel | :done)
10
+ def handle_find_char: (untyped, untyped) -> (:cancel | :done)
11
+ def delete_line: -> :done
12
+ def delete_motion: (:word_backward | :word_end | :word_forward) -> (:cancel | :done)
13
+ def delete_to_line_start: -> :done
14
+ def delete_to_line_end: -> :done
15
+ def delete_to_file_end: -> :done
16
+ def delete_to_line_start_internal: -> nil
17
+ def delete_to_file_start_internal: -> untyped
18
+ def execute_find_char_delete: (untyped, untyped) -> untyped
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,19 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/operators/paste_operator.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ module Mui::KeyHandler::Operators
7
+ class Mui::KeyHandler::Operators::PasteOperator # failed to identify its superclass
8
+ def paste_after: (?pending_register: nil) -> :done
9
+ def paste_before: (?pending_register: nil) -> :done
10
+ def handle_pending: (untyped, ?pending_register: nil) -> :cancel
11
+ def paste_line_after: (?name: nil) -> untyped
12
+ def paste_line_before: (?name: nil) -> untyped
13
+ def paste_char_after: (?name: nil) -> untyped
14
+ def paste_char_before: (?name: nil) -> untyped
15
+ def paste_multiline_char: (untyped, untyped, Integer) -> untyped
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/operators/yank_operator.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ module Mui::KeyHandler::Operators
7
+ class Mui::KeyHandler::Operators::YankOperator # failed to identify its superclass
8
+ def handle_pending: (untyped, ?pending_register: nil) -> (:cancel | :done | :pending_yF | :pending_yT | :pending_yf | :pending_yg | :pending_yt)
9
+ def handle_to_file_start: (untyped) -> (:cancel | :done)
10
+ def handle_find_char: (untyped, untyped) -> (:cancel | :done)
11
+ def yank_line: -> :done
12
+ def yank_motion: (:word_backward | :word_end | :word_forward) -> (:cancel | :done)
13
+ def yank_to_line_start: -> :done
14
+ def yank_to_line_end: -> :done
15
+ def yank_to_file_end: -> :done
16
+ def execute_find_char_yank: (untyped, untyped) -> untyped
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,25 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/search_mode.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::SearchMode # failed to identify its superclass
7
+ def completion_state: -> untyped
8
+ def initialize: (untyped, untyped, untyped, untyped) -> void
9
+ def start_search: -> untyped
10
+ def handle: (untyped) -> untyped
11
+ def handle_tab: -> untyped
12
+ def handle_shift_tab: -> untyped
13
+ def apply_current_completion: -> nil
14
+ def handle_escape: -> untyped
15
+ def restore_cursor_position: -> nil
16
+ def handle_backspace: -> untyped
17
+ def handle_enter: -> untyped
18
+ def handle_character_input: (untyped) -> untyped
19
+ def update_completion: -> nil
20
+ def update_incremental_search: -> nil
21
+ def execute_search: -> untyped
22
+ def result: (?mode: nil, ?message: (String | true)?, ?quit: String | bool, ?cancelled: String | bool) -> untyped
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/visual_line_mode.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::VisualLineMode # failed to identify its superclass
7
+ def handle_v_key: -> untyped
8
+ def handle_upper_v_key: -> untyped
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,43 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/visual_mode.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::VisualMode # failed to identify its superclass
7
+ Mui::KeyHandler::VisualMode::INDENT_PATTERN: Array[String]
8
+ def selection: -> untyped
9
+ def initialize: (untyped, untyped, untyped, ?nil, ?undo_manager: nil) -> void
10
+ def handle: (untyped) -> untyped
11
+ def handle_visual_key: (untyped) -> untyped
12
+ def handle_v_key: -> untyped
13
+ def handle_upper_v_key: -> untyped
14
+ def handle_delete: -> untyped
15
+ def handle_change: -> untyped
16
+ def handle_yank: -> untyped
17
+ def handle_search_selection: (:backward | :forward) -> untyped
18
+ def yank_lines: (untyped) -> untyped
19
+ def yank_range: (untyped) -> untyped
20
+ def extract_selection_text: (untyped) -> String
21
+ def change_lines: (untyped) -> untyped
22
+ def change_range: (untyped) -> untyped
23
+ def delete_lines: (untyped) -> untyped
24
+ def delete_range: (untyped) -> untyped
25
+ def handle_indent: (:left | :right) -> untyped
26
+ def indent_lines: (untyped, untyped, :left | :right) -> untyped
27
+ def build_indent_string: -> String
28
+ def add_indent: (untyped, String) -> String?
29
+ def remove_indent: (untyped, untyped) -> nil
30
+ def handle_pending_motion: (untyped) -> untyped
31
+ def handle_register_select: (untyped) -> untyped
32
+ def valid_register_name?: (untyped) -> bool
33
+ def clear_pending: -> untyped
34
+ def handle_move_left: -> untyped
35
+ def handle_move_down: -> untyped
36
+ def handle_move_up: -> untyped
37
+ def handle_move_right: -> untyped
38
+ def apply_motion: (untyped) -> nil
39
+ def update_selection: -> untyped
40
+ def result: (?mode: nil, ?message: (String | true)?, ?quit: String | bool, ?clear_selection: bool, ?toggle_line_mode: String | bool, ?group_started: String | bool) -> untyped
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler/window_command.rb
4
+ module Mui
5
+ module Mui::KeyHandler
6
+ class Mui::KeyHandler::WindowCommand
7
+ def initialize: (untyped) -> void
8
+ def handle: (untyped) -> (:close_all_except_current | :close_window | :done | :focus_next | :focus_previous | :split_horizontal | :split_vertical | Symbol)
9
+ def handle_control_key: (untyped) -> (:close_all_except_current | :close_window | :focus_next | :split_horizontal | :split_vertical | Symbol)?
10
+ def key_to_char: (untyped) -> nil
11
+ def handle_split_horizontal: -> :split_horizontal
12
+ def handle_split_vertical: -> :split_vertical
13
+ def handle_focus_direction: (:down | :left | :right | :up) -> Symbol
14
+ def handle_focus_next: -> :focus_next
15
+ def handle_focus_previous: -> :focus_previous
16
+ def handle_close_window: -> :close_window
17
+ def handle_close_all_except_current: -> :close_all_except_current
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_handler.rb
4
+
@@ -0,0 +1,16 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_notation_parser.rb
4
+ module Mui
5
+ module Mui::KeyNotationParser
6
+ Mui::KeyNotationParser::SPECIAL_KEYS: Hash[String, :leader | String]
7
+ Mui::KeyNotationParser::CTRL_CHARS: Hash[String, Integer]
8
+ Mui::KeyNotationParser::SHIFT_CHARS: Hash[String, String]
9
+ def self.parse: (untyped) -> []
10
+ def self.parse_special: (untyped) -> (:leader | String)?
11
+ def self.normalize_input_key: (untyped) -> String?
12
+ def self.parse_ctrl_key: (String?) -> String?
13
+ def self.parse_shift_key: (String?) -> String?
14
+ def self.normalize_integer_key: (untyped) -> String?
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_sequence.rb
4
+ module Mui
5
+ class Mui::KeySequence
6
+ def keys: -> untyped
7
+ def notation: -> untyped
8
+ def initialize: (untyped) -> void
9
+ def normalize: (untyped) -> untyped
10
+ def length: -> untyped
11
+ def leader?: -> untyped
12
+ def single_key?: -> untyped
13
+ def ==: (untyped) -> false
14
+ def hash: -> untyped
15
+ def to_s: -> untyped
16
+ def inspect: -> String
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_sequence_buffer.rb
4
+ module Mui
5
+ class Mui::KeySequenceBuffer
6
+ def last_input_time: -> Time?
7
+ def initialize: -> void
8
+ def push: (untyped) -> bool
9
+ def clear: -> nil
10
+ def empty?: -> bool
11
+ def length: -> Integer
12
+ def to_a: -> Array[untyped]
13
+ def first: -> untyped
14
+ def shift: -> untyped
15
+ def timeout?: (untyped) -> bool
16
+ def elapsed_ms: -> Float?
17
+ end
18
+ end
@@ -0,0 +1,24 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_sequence_handler.rb
4
+ module Mui
5
+ class Mui::KeySequenceHandler
6
+ Mui::KeySequenceHandler::DEFAULT_TIMEOUT_MS: Integer
7
+ Mui::KeySequenceHandler::RESULT_HANDLED: :handled
8
+ Mui::KeySequenceHandler::RESULT_PENDING: :pending
9
+ Mui::KeySequenceHandler::RESULT_PASSTHROUGH: :passthrough
10
+ def buffer: -> untyped
11
+ def initialize: (untyped) -> void
12
+ def leader_key: -> String
13
+ def timeout_ms: -> Integer
14
+ def register: (untyped, untyped, untyped) -> untyped
15
+ def process: (untyped, untyped) -> ([:handled, untyped] | [:passthrough, untyped] | [:pending, nil])
16
+ def check_timeout: (untyped) -> ([:handled, untyped] | [:passthrough, untyped])?
17
+ def pending?: -> untyped
18
+ def clear: -> nil
19
+ def pending_keys_display: -> nil
20
+ def rebuild_keymaps: -> untyped
21
+ def handle_timeout: (untyped) -> ([:handled, untyped] | [:passthrough, untyped])
22
+ def handle_no_match: -> [:passthrough, untyped]
23
+ end
24
+ end
@@ -0,0 +1,14 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/key_sequence_matcher.rb
4
+ module Mui
5
+ class Mui::KeySequenceMatcher
6
+ Mui::KeySequenceMatcher::MATCH_EXACT: :exact
7
+ Mui::KeySequenceMatcher::MATCH_PARTIAL: :partial
8
+ Mui::KeySequenceMatcher::MATCH_NONE: :none
9
+ def initialize: (untyped, untyped) -> void
10
+ def match: (untyped, untyped) -> ([:exact, untyped] | [:none, nil] | [:partial, nil])
11
+ def longer_sequences?: (untyped, untyped) -> false
12
+ def prefix_match?: (untyped, untyped) -> false
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/layout/calculator.rb
4
+ module Mui
5
+ module Mui::Layout
6
+ class Mui::Layout::Calculator
7
+ def calculate: (untyped, untyped, untyped, untyped, untyped) -> untyped
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,16 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/layout/leaf_node.rb
4
+ module Mui
5
+ module Mui::Layout
6
+ class Mui::Layout::LeafNode # failed to identify its superclass
7
+ def window: -> untyped
8
+ def window=: (untyped) -> untyped
9
+ def initialize: (untyped) -> void
10
+ def leaf?: -> true
11
+ def windows: -> [untyped]
12
+ def find_window_node: (untyped) -> Mui::Layout::LeafNode?
13
+ def apply_geometry: -> untyped
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,24 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/layout/node.rb
4
+ module Mui
5
+ module Mui::Layout
6
+ class Mui::Layout::Node
7
+ def parent: -> untyped
8
+ def parent=: (untyped) -> untyped
9
+ def x: -> untyped
10
+ def x=: (untyped) -> untyped
11
+ def y: -> untyped
12
+ def y=: (untyped) -> untyped
13
+ def width: -> untyped
14
+ def width=: (untyped) -> untyped
15
+ def height: -> untyped
16
+ def height=: (untyped) -> untyped
17
+ def leaf?: -> false
18
+ def split?: -> false
19
+ def windows: -> untyped
20
+ def find_window_node: (untyped) -> untyped
21
+ def apply_geometry: -> untyped
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,29 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/layout/split_node.rb
4
+ module Mui
5
+ module Mui::Layout
6
+ class Mui::Layout::SplitNode # failed to identify its superclass
7
+ Mui::Layout::SplitNode::SEPARATOR_SIZE: Integer
8
+ def direction: -> untyped
9
+ def direction=: (untyped) -> untyped
10
+ def children: -> []
11
+ def children=: (untyped) -> []
12
+ def ratio: -> Float
13
+ def ratio=: (untyped) -> Float
14
+ def initialize: (direction: untyped, ?children: [], ?ratio: Float) -> void
15
+ def separators: -> []
16
+ def split?: -> true
17
+ def windows: -> Array[untyped]
18
+ def find_window_node: (untyped) -> nil
19
+ def apply_geometry: -> Array[untyped]?
20
+ def replace_child: (untyped, untyped) -> nil
21
+ def remove_child: (untyped) -> nil
22
+ def apply_single_child: -> untyped
23
+ def apply_split_children: -> nil
24
+ def apply_horizontal_split: -> untyped
25
+ def apply_vertical_split: -> untyped
26
+ def collect_separators: ([]) -> Array[untyped]?
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,18 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/line_renderer.rb
4
+ module Mui
5
+ class Mui::LineRenderer
6
+ def initialize: (untyped) -> void
7
+ def add_highlighter: (untyped) -> []
8
+ def render: (untyped, untyped, untyped, untyped, untyped, ?Hash[untyped, untyped]) -> Array[Hash[:style | :text, :normal]]?
9
+ def render_wrapped_line: (untyped, untyped, untyped, untyped, ?Hash[untyped, untyped]) -> Array[Hash[:style | :text, :normal]]?
10
+ def clip_highlights_to_range: (Array[untyped], untyped, untyped) -> Array[untyped]
11
+ def collect_highlights: (untyped, untyped, Hash[untyped, untyped]) -> Array[untyped]
12
+ def render_with_highlights: (untyped, untyped, untyped, untyped, Array[untyped]) -> Array[Hash[:style | :text, :normal]]?
13
+ def build_segments: (untyped, Array[untyped]) -> []
14
+ def build_events: (Array[untyped], untyped) -> []
15
+ def put_text: (untyped, untyped, untyped, untyped, :normal) -> nil
16
+ def resolve_style: (:normal) -> untyped
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/mode.rb
4
+ module Mui
5
+ module Mui::Mode
6
+ Mui::Mode::NORMAL: :normal
7
+ Mui::Mode::INSERT: :insert
8
+ Mui::Mode::COMMAND: :command
9
+ Mui::Mode::VISUAL: :visual
10
+ Mui::Mode::VISUAL_LINE: :visual_line
11
+ Mui::Mode::SEARCH_FORWARD: :search_forward
12
+ Mui::Mode::SEARCH_BACKWARD: :search_backward
13
+ end
14
+ end
@@ -0,0 +1,33 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/mode_manager.rb
4
+ module Mui
5
+ class Mui::ModeManager
6
+ def mode: -> untyped
7
+ def selection: -> nil
8
+ def register: -> untyped
9
+ def undo_manager: -> nil
10
+ def search_state: -> untyped
11
+ def search_input: -> untyped
12
+ def editor: -> nil
13
+ def last_visual_selection: -> Hash[:end_col | :end_row | :line_mode | :start_col | :start_row, untyped]?
14
+ def key_sequence_handler: -> nil
15
+ def initialize: (window: untyped, buffer: untyped, command_line: untyped, ?undo_manager: nil, ?editor: nil, ?register: nil, ?key_sequence_handler: nil) -> void
16
+ def window_manager: -> nil
17
+ def current_handler: -> untyped
18
+ def transition: (untyped) -> nil
19
+ def visual_mode?: -> untyped
20
+ def active_window: -> nil
21
+ def restore_visual_selection: -> nil
22
+ def initialize_key_handlers: -> Hash[untyped, untyped]
23
+ def create_insert_handler: (?group_started: false) -> untyped
24
+ def handle_insert_transition: (untyped, untyped) -> untyped
25
+ def handle_visual_transition: (untyped) -> nil
26
+ def start_visual_mode: (untyped, untyped) -> untyped
27
+ def clear_visual_mode: -> nil
28
+ def save_visual_selection: -> Hash[:end_col | :end_row | :line_mode | :start_col | :start_row, untyped]?
29
+ def toggle_visual_line_mode: (untyped) -> nil
30
+ def create_visual_handler: (line_mode: untyped) -> untyped
31
+ def handle_search_transition: (String, untyped) -> untyped
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/motion.rb
4
+ module Mui
5
+ module Mui::Motion
6
+ Mui::Motion::WORD_CHARS: Regexp
7
+ def self.left: (untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
8
+ def self.right: (untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
9
+ def self.up: (untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
10
+ def self.down: (untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
11
+ def self.word_forward: (untyped, untyped, untyped) -> (Hash[:col | :row, Integer] | Hash[:col | :row, untyped])
12
+ def self.word_backward: (untyped, untyped, untyped) -> Hash[:col | :row, untyped]
13
+ def self.word_end: (untyped, untyped, Integer) -> Hash[:col | :row, Integer]
14
+ def self.line_start: (untyped, untyped, untyped) -> Hash[:col | :row, Integer]
15
+ def self.first_non_blank: (untyped, untyped, untyped) -> Hash[:col | :row, Integer]
16
+ def self.line_end: (untyped, untyped, untyped) -> Hash[:col | :row, Integer]
17
+ def self.file_start: (untyped, untyped, untyped) -> Hash[:col | :row, Integer]
18
+ def self.file_end: (untyped, untyped, untyped) -> Hash[:col | :row, Integer]
19
+ def self.find_char_forward: (untyped, untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
20
+ def self.find_char_backward: (untyped, untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
21
+ def self.till_char_forward: (untyped, untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
22
+ def self.till_char_backward: (untyped, untyped, untyped, untyped) -> Hash[:col | :row, untyped]?
23
+ end
24
+ end
@@ -0,0 +1,17 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/plugin.rb
4
+ module Mui
5
+ class Mui::Plugin
6
+ def plugin_name: -> untyped
7
+ def plugin_name=: (untyped) -> untyped
8
+ def plugin_dependencies: -> untyped
9
+ def plugin_dependencies=: (untyped) -> untyped
10
+ def self.name: (untyped) -> untyped
11
+ def self.depends_on: (*untyped) -> Array[untyped]
12
+ def setup: -> nil
13
+ def command: (untyped) -> untyped
14
+ def keymap: (untyped, untyped) -> untyped
15
+ def autocmd: (untyped, ?pattern: nil) -> untyped
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/plugin_manager.rb
4
+ module Mui
5
+ class Mui::PluginManager
6
+ def plugins: -> Hash[untyped, Hash[:dependencies | :handler, Array[untyped]]]
7
+ def loaded_plugins: -> []
8
+ def pending_gems: -> []
9
+ def initialize: -> void
10
+ def add_gem: (untyped, ?nil) -> []
11
+ def register: (untyped, untyped, ?dependencies: []) -> Hash[:dependencies | :handler, Array[untyped]]
12
+ def install_and_load: -> true?
13
+ def installed?: -> bool
14
+ def install_gems: -> nil
15
+ def load_all_plugins: -> Array[untyped]
16
+ def load_plugin: (untyped) -> []?
17
+ def instantiate_plugin: (untyped) -> nil
18
+ def topological_sort: (Hash[untyped, Hash[:dependencies | :handler, Array[untyped]]]) -> []?
19
+ end
20
+ end
@@ -0,0 +1,21 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/register.rb
4
+ module Mui
5
+ class Mui::Register
6
+ Mui::Register::YANK_REGISTER: String
7
+ Mui::Register::DELETE_HISTORY_REGISTERS: Array[String]
8
+ Mui::Register::BLACK_HOLE_REGISTER: String
9
+ Mui::Register::UNNAMED_REGISTER: String
10
+ Mui::Register::NAMED_REGISTERS: Array[String]
11
+ def initialize: -> void
12
+ def yank: (untyped, ?linewise: false, ?name: nil) -> Hash[:content | :linewise, false]?
13
+ def delete: (untyped, ?linewise: false, ?name: nil) -> (Array[Hash[:content | :linewise, false]] | Hash[:content | :linewise, false])?
14
+ def set: (untyped, ?linewise: false, ?name: nil) -> Hash[:content | :linewise, false]
15
+ def get: (?name: nil) -> false?
16
+ def linewise?: (?name: nil) -> false
17
+ def empty?: (?name: nil) -> bool
18
+ def linewise: -> false
19
+ def shift_delete_history: (untyped, false) -> Array[Hash[:content | :linewise, false]]
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/screen.rb
4
+ module Mui
5
+ class Mui::Screen
6
+ def width: -> untyped
7
+ def height: -> untyped
8
+ def initialize: (adapter: untyped, ?color_manager: nil) -> void
9
+ def refresh: -> untyped
10
+ def close: -> untyped
11
+ def clear: -> untyped
12
+ def touchwin: -> untyped
13
+ def put: (untyped, untyped, untyped) -> nil
14
+ def put_with_highlight: (untyped, untyped, untyped) -> nil
15
+ def put_with_style: (untyped, untyped, untyped, untyped) -> nil
16
+ def move_cursor: (untyped, untyped) -> untyped
17
+ def ensure_color_pair: (untyped, untyped) -> untyped
18
+ def update_size: -> untyped
19
+ def truncate_to_width: (untyped, untyped) -> untyped
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/search_completer.rb
4
+ module Mui
5
+ class Mui::SearchCompleter
6
+ Mui::SearchCompleter::MAX_CANDIDATES: Integer
7
+ def initialize: -> void
8
+ def complete: (untyped, untyped) -> (Array[untyped] | [])
9
+ def extract_words: (untyped) -> Array[untyped]
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/search_input.rb
4
+ module Mui
5
+ class Mui::SearchInput
6
+ def buffer: -> String
7
+ def prompt: -> String
8
+ def initialize: (?String) -> void
9
+ def input: (untyped) -> String
10
+ def backspace: -> String
11
+ def clear: -> String
12
+ def set_prompt: (untyped) -> untyped
13
+ def to_s: -> String
14
+ def pattern: -> String
15
+ def empty?: -> bool
16
+ end
17
+ end
@@ -0,0 +1,22 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/search_state.rb
4
+ module Mui
5
+ class Mui::SearchState
6
+ def pattern: -> nil
7
+ def direction: -> :forward
8
+ def initialize: -> void
9
+ def set_pattern: (untyped, untyped) -> Hash[Integer, Hash[:change_count | :matches | :row_index | :version, Hash[untyped, []] | Hash[untyped, untyped] | Integer | []]]
10
+ def find_all_matches: (untyped) -> []
11
+ def find_next: (untyped, untyped, ?buffer: nil) -> Hash[:col | :end_col | :row, untyped]?
12
+ def find_previous: (untyped, untyped, ?buffer: nil) -> Hash[:col | :end_col | :row, untyped]?
13
+ def clear: -> Hash[Integer, Hash[:change_count | :matches | :row_index | :version, Hash[untyped, []] | Hash[untyped, untyped] | Integer | []]]
14
+ def has_pattern?: -> false
15
+ def matches_for_row: (untyped, ?buffer: nil) -> []
16
+ def get_or_calculate_matches: (untyped) -> []
17
+ def get_or_calculate_cache: (nil) -> Hash[:change_count | :matches | :row_index | :version, Hash[untyped, []] | Hash[untyped, untyped] | Integer | []]
18
+ def generate_regex: -> Regexp?
19
+ def calculate_matches: (nil) -> ([[], Hash[untyped, []]] | [[], Hash[untyped, untyped]])
20
+ def scan_line_matches: (untyped, untyped, Regexp?) -> []
21
+ end
22
+ end
@@ -0,0 +1,21 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/selection.rb
4
+ module Mui
5
+ class Mui::Selection
6
+ def start_row: -> untyped
7
+ def start_row=: (untyped) -> untyped
8
+ def start_col: -> untyped
9
+ def start_col=: (untyped) -> untyped
10
+ def end_row: -> untyped
11
+ def end_row=: (untyped) -> untyped
12
+ def end_col: -> untyped
13
+ def end_col=: (untyped) -> untyped
14
+ def line_mode: -> false
15
+ def initialize: (untyped, untyped, ?line_mode: false) -> void
16
+ def update_end: (untyped, untyped) -> untyped
17
+ def normalized_range: -> Hash[:end_col | :end_row | :start_col | :start_row, untyped]
18
+ def covers_position?: (untyped, untyped, untyped) -> bool
19
+ def covers_character_position?: (untyped, untyped, Hash[:end_col | :end_row | :start_col | :start_row, untyped], untyped) -> bool
20
+ end
21
+ end
@@ -0,0 +1,12 @@
1
+ # TypeProf 0.31.1
2
+
3
+ # lib/mui/status_line_renderer.rb
4
+ module Mui
5
+ class Mui::StatusLineRenderer
6
+ def initialize: (untyped, untyped, untyped) -> void
7
+ def render: (untyped, untyped) -> untyped
8
+ def build_status_text: -> String
9
+ def build_position_text: -> String
10
+ def format_status_line: (String, String) -> untyped
11
+ end
12
+ end