mui 0.4.0 → 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.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -22
- data/.ruby-lsp.yml +19 -0
- data/CHANGELOG.md +56 -0
- data/README.md +17 -0
- data/docs/configuration.md +40 -0
- data/docs/getting-started.md +1 -1
- data/docs/keybindings.md +4 -0
- data/lib/mui/buffer.rb +1 -1
- data/lib/mui/buffer_word_cache.rb +2 -3
- data/lib/mui/command_completer.rb +4 -2
- data/lib/mui/command_line.rb +7 -2
- data/lib/mui/completion_renderer.rb +1 -1
- data/lib/mui/config.rb +3 -1
- data/lib/mui/editor.rb +3 -0
- data/lib/mui/file_completer.rb +10 -10
- data/lib/mui/insert_completion_renderer.rb +1 -1
- data/lib/mui/key_code.rb +5 -0
- data/lib/mui/key_handler/base.rb +2 -0
- data/lib/mui/key_handler/command_mode.rb +1 -1
- data/lib/mui/key_handler/insert_mode.rb +30 -0
- data/lib/mui/key_handler/normal_mode.rb +22 -2
- data/lib/mui/key_handler/visual_mode.rb +3 -1
- data/lib/mui/key_notation_parser.rb +13 -4
- data/lib/mui/mode_manager.rb +15 -27
- data/lib/mui/register.rb +36 -0
- data/lib/mui/screen.rb +5 -3
- data/lib/mui/search_completer.rb +1 -1
- data/lib/mui/search_input.rb +3 -3
- data/lib/mui/search_state.rb +11 -2
- data/lib/mui/status_line_renderer.rb +3 -5
- data/lib/mui/syntax/lexers/markdown_lexer.rb +1 -1
- data/lib/mui/terminal_adapter/curses.rb +40 -46
- data/lib/mui/unicode_width.rb +1 -1
- data/lib/mui/version.rb +1 -1
- data/lib/mui/window.rb +8 -0
- data/lib/mui/window_manager.rb +2 -5
- data/lib/mui/wrap_helper.rb +3 -3
- data/sig/lib/mui/autocmd.rbs +12 -0
- data/sig/lib/mui/buffer.rbs +52 -0
- data/sig/lib/mui/buffer_word_cache.rbs +21 -0
- data/sig/lib/mui/buffer_word_completer.rbs +15 -0
- data/sig/lib/mui/color_manager.rbs +20 -0
- data/sig/lib/mui/color_scheme.rbs +14 -0
- data/sig/lib/mui/command_completer.rbs +11 -0
- data/sig/lib/mui/command_context.rbs +24 -0
- data/sig/lib/mui/command_history.rbs +20 -0
- data/sig/lib/mui/command_line.rbs +24 -0
- data/sig/lib/mui/command_registry.rbs +14 -0
- data/sig/lib/mui/completion_renderer.rbs +14 -0
- data/sig/lib/mui/completion_state.rbs +20 -0
- data/sig/lib/mui/config.rbs +20 -0
- data/sig/lib/mui/editor.rbs +54 -0
- data/sig/lib/mui/error.rbs +18 -0
- data/sig/lib/mui/file_completer.rbs +13 -0
- data/sig/lib/mui/floating_window.rbs +30 -0
- data/sig/lib/mui/handler_result.rbs +38 -0
- data/sig/lib/mui/highlight.rbs +14 -0
- data/sig/lib/mui/highlighters/base.rbs +15 -0
- data/sig/lib/mui/highlighters/search_highlighter.rbs +11 -0
- data/sig/lib/mui/highlighters/selection_highlighter.rbs +13 -0
- data/sig/lib/mui/highlighters/syntax_highlighter.rbs +20 -0
- data/sig/lib/mui/input.rbs +10 -0
- data/sig/lib/mui/insert_completion_renderer.rbs +15 -0
- data/sig/lib/mui/insert_completion_state.rbs +23 -0
- data/sig/lib/mui/job.rbs +27 -0
- data/sig/lib/mui/job_manager.rbs +20 -0
- data/sig/lib/mui/key_code.rbs +29 -0
- data/sig/lib/mui/key_handler/base.rbs +35 -0
- data/sig/lib/mui/key_handler/command_mode.rbs +56 -0
- data/sig/lib/mui/key_handler/insert_mode.rbs +42 -0
- data/sig/lib/mui/key_handler/motions/motion_handler.rbs +19 -0
- data/sig/lib/mui/key_handler/normal_mode.rbs +55 -0
- data/sig/lib/mui/key_handler/operators/base_operator.rbs +29 -0
- data/sig/lib/mui/key_handler/operators/change_operator.rbs +22 -0
- data/sig/lib/mui/key_handler/operators/delete_operator.rbs +22 -0
- data/sig/lib/mui/key_handler/operators/paste_operator.rbs +19 -0
- data/sig/lib/mui/key_handler/operators/yank_operator.rbs +20 -0
- data/sig/lib/mui/key_handler/search_mode.rbs +25 -0
- data/sig/lib/mui/key_handler/visual_line_mode.rbs +11 -0
- data/sig/lib/mui/key_handler/visual_mode.rbs +43 -0
- data/sig/lib/mui/key_handler/window_command.rbs +20 -0
- data/sig/lib/mui/key_handler.rbs +4 -0
- data/sig/lib/mui/key_notation_parser.rbs +16 -0
- data/sig/lib/mui/key_sequence.rbs +18 -0
- data/sig/lib/mui/key_sequence_buffer.rbs +18 -0
- data/sig/lib/mui/key_sequence_handler.rbs +24 -0
- data/sig/lib/mui/key_sequence_matcher.rbs +14 -0
- data/sig/lib/mui/layout/calculator.rbs +10 -0
- data/sig/lib/mui/layout/leaf_node.rbs +16 -0
- data/sig/lib/mui/layout/node.rbs +24 -0
- data/sig/lib/mui/layout/split_node.rbs +29 -0
- data/sig/lib/mui/line_renderer.rbs +18 -0
- data/sig/lib/mui/mode.rbs +14 -0
- data/sig/lib/mui/mode_manager.rbs +33 -0
- data/sig/lib/mui/motion.rbs +24 -0
- data/sig/lib/mui/plugin.rbs +17 -0
- data/sig/lib/mui/plugin_manager.rbs +20 -0
- data/sig/lib/mui/register.rbs +21 -0
- data/sig/lib/mui/screen.rbs +21 -0
- data/sig/lib/mui/search_completer.rbs +11 -0
- data/sig/lib/mui/search_input.rbs +17 -0
- data/sig/lib/mui/search_state.rbs +22 -0
- data/sig/lib/mui/selection.rbs +21 -0
- data/sig/lib/mui/status_line_renderer.rbs +12 -0
- data/sig/lib/mui/syntax/language_detector.rbs +16 -0
- data/sig/lib/mui/syntax/lexer_base.rbs +16 -0
- data/sig/lib/mui/syntax/lexers/c_lexer.rbs +19 -0
- data/sig/lib/mui/syntax/lexers/css_lexer.rbs +19 -0
- data/sig/lib/mui/syntax/lexers/go_lexer.rbs +26 -0
- data/sig/lib/mui/syntax/lexers/html_lexer.rbs +19 -0
- data/sig/lib/mui/syntax/lexers/javascript_lexer.rbs +26 -0
- data/sig/lib/mui/syntax/lexers/markdown_lexer.rbs +24 -0
- data/sig/lib/mui/syntax/lexers/ruby_lexer.rbs +18 -0
- data/sig/lib/mui/syntax/lexers/rust_lexer.rbs +21 -0
- data/sig/lib/mui/syntax/lexers/typescript_lexer.rbs +26 -0
- data/sig/lib/mui/syntax/token.rbs +16 -0
- data/sig/lib/mui/syntax/token_cache.rbs +16 -0
- data/sig/lib/mui/tab_bar_renderer.rbs +23 -0
- data/sig/lib/mui/tab_manager.rbs +23 -0
- data/sig/lib/mui/tab_page.rbs +16 -0
- data/sig/lib/mui/terminal_adapter/base.rbs +31 -0
- data/sig/lib/mui/terminal_adapter/curses.rbs +31 -0
- data/sig/lib/mui/terminal_adapter.rbs +4 -0
- data/sig/lib/mui/themes/default.rbs +15 -0
- data/sig/lib/mui/undo_manager.rbs +20 -0
- data/sig/lib/mui/undoable_action.rbs +56 -0
- data/sig/lib/mui/unicode_width.rbs +12 -0
- data/sig/lib/mui/version.rbs +6 -0
- data/sig/lib/mui/window.rbs +49 -0
- data/sig/lib/mui/window_manager.rbs +37 -0
- data/sig/lib/mui/wrap_cache.rbs +14 -0
- data/sig/lib/mui/wrap_helper.rbs +11 -0
- data/sig/lib/mui.rbs +24 -0
- data/sig/typeprof.rbs +42 -0
- data/typeprof.conf.jsonc +6 -0
- metadata +116 -4
- data/sig/mui.rbs +0 -4
|
@@ -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
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/language_detector.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
class Mui::Syntax::LanguageDetector
|
|
7
|
+
Mui::Syntax::LanguageDetector::EXTENSION_MAP: Hash[String, :c | :css | :go | :html | :javascript | :markdown | :ruby | :rust | :typescript]
|
|
8
|
+
Mui::Syntax::LanguageDetector::BASENAME_MAP: Hash[String, :ruby]
|
|
9
|
+
def self.detect: (untyped) -> (:c | :css | :go | :html | :javascript | :markdown | :ruby | :rust | :typescript)?
|
|
10
|
+
def self.lexer_for: ((:c | :css | :go | :html | :javascript | :markdown | :ruby | :rust | :typescript)?) -> nil
|
|
11
|
+
def self.lexer_for_file: (untyped) -> nil
|
|
12
|
+
def self.supported_languages: -> Array[:c | :css | :go | :html | :javascript | :markdown | :ruby | :rust | :typescript]
|
|
13
|
+
def self.supported_extensions: -> Array[String]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexer_base.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
class Mui::Syntax::LexerBase
|
|
7
|
+
def tokenize: (untyped, ?nil) -> [[], nil]
|
|
8
|
+
def continuing_state?: (untyped) -> untyped
|
|
9
|
+
def token_patterns: -> []
|
|
10
|
+
def handle_multiline_state: (untyped, Integer, untyped) -> [nil, nil, Integer]
|
|
11
|
+
def check_multiline_start: (untyped, Integer) -> [nil, nil, Integer]
|
|
12
|
+
def compiled_patterns: -> Array[[untyped, Regexp]]
|
|
13
|
+
def match_token: (untyped, Integer) -> nil
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/c_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::CLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::CLexer::COMPILED_PATTERNS: Array[[:char, Regexp] | [:comment, Regexp] | [:function_definition, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
9
|
+
Mui::Syntax::Lexers::CLexer::BLOCK_COMMENT_END: Regexp
|
|
10
|
+
Mui::Syntax::Lexers::CLexer::BLOCK_COMMENT_START: Regexp
|
|
11
|
+
Mui::Syntax::Lexers::CLexer::BLOCK_COMMENT_START_ANCHOR: Regexp
|
|
12
|
+
def compiled_patterns: -> Array[[:char, Regexp] | [:comment, Regexp] | [:function_definition, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
13
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
14
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [nil, nil, untyped])
|
|
15
|
+
def match_token: (untyped, untyped) -> nil
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/css_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::CssLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::CssLexer::COMPILED_PATTERNS: Array[[:comment, Regexp] | [:constant, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
9
|
+
Mui::Syntax::Lexers::CssLexer::BLOCK_COMMENT_END: Regexp
|
|
10
|
+
Mui::Syntax::Lexers::CssLexer::BLOCK_COMMENT_START: Regexp
|
|
11
|
+
Mui::Syntax::Lexers::CssLexer::BLOCK_COMMENT_START_ANCHOR: Regexp
|
|
12
|
+
def compiled_patterns: -> Array[[:comment, Regexp] | [:constant, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
13
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
14
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [nil, nil, untyped])
|
|
15
|
+
def match_token: (untyped, untyped) -> nil
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/go_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::GoLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::GoLexer::KEYWORDS: Array[String]
|
|
9
|
+
Mui::Syntax::Lexers::GoLexer::TYPES: Array[String]
|
|
10
|
+
Mui::Syntax::Lexers::GoLexer::CONSTANTS: Array[String]
|
|
11
|
+
Mui::Syntax::Lexers::GoLexer::COMPILED_PATTERNS: Array[[:char, Regexp] | [:comment, Regexp] | [:constant, Regexp] | [:function_definition, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
12
|
+
Mui::Syntax::Lexers::GoLexer::BLOCK_COMMENT_END: Regexp
|
|
13
|
+
Mui::Syntax::Lexers::GoLexer::BLOCK_COMMENT_START: Regexp
|
|
14
|
+
Mui::Syntax::Lexers::GoLexer::BLOCK_COMMENT_START_ANCHOR: Regexp
|
|
15
|
+
Mui::Syntax::Lexers::GoLexer::RAW_STRING_START: Regexp
|
|
16
|
+
Mui::Syntax::Lexers::GoLexer::RAW_STRING_END: Regexp
|
|
17
|
+
def compiled_patterns: -> Array[[:char, Regexp] | [:comment, Regexp] | [:constant, Regexp] | [:function_definition, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
18
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, :raw_string, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
19
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [:raw_string, untyped, untyped] | [nil, nil, untyped])
|
|
20
|
+
def handle_block_comment: (untyped, untyped) -> ([nil, :block_comment, untyped] | [untyped, nil, untyped])
|
|
21
|
+
def handle_raw_string: (untyped, untyped) -> ([nil, :raw_string, untyped] | [untyped, nil, untyped])
|
|
22
|
+
def match_token: (untyped, untyped) -> nil
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/html_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::HtmlLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::HtmlLexer::COMPILED_PATTERNS: Array[[:comment, Regexp] | [:constant, Regexp] | [:keyword, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
9
|
+
Mui::Syntax::Lexers::HtmlLexer::COMMENT_START: Regexp
|
|
10
|
+
Mui::Syntax::Lexers::HtmlLexer::COMMENT_END: Regexp
|
|
11
|
+
Mui::Syntax::Lexers::HtmlLexer::COMMENT_START_ANCHOR: Regexp
|
|
12
|
+
def compiled_patterns: -> Array[[:comment, Regexp] | [:constant, Regexp] | [:keyword, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
13
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :html_comment, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
14
|
+
def check_multiline_start: (untyped, untyped) -> ([:html_comment, untyped, untyped] | [nil, nil, untyped])
|
|
15
|
+
def match_token: (untyped, untyped) -> nil
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/javascript_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::JavaScriptLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::JavaScriptLexer::KEYWORDS: Array[String]
|
|
9
|
+
Mui::Syntax::Lexers::JavaScriptLexer::CONSTANTS: Array[String]
|
|
10
|
+
Mui::Syntax::Lexers::JavaScriptLexer::COMPILED_PATTERNS: Array[[:comment, Regexp] | [:constant, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:regex, Regexp] | [:string, Regexp]]
|
|
11
|
+
Mui::Syntax::Lexers::JavaScriptLexer::BLOCK_COMMENT_END: Regexp
|
|
12
|
+
Mui::Syntax::Lexers::JavaScriptLexer::BLOCK_COMMENT_START: Regexp
|
|
13
|
+
Mui::Syntax::Lexers::JavaScriptLexer::BLOCK_COMMENT_START_ANCHOR: Regexp
|
|
14
|
+
Mui::Syntax::Lexers::JavaScriptLexer::TEMPLATE_LITERAL_START: Regexp
|
|
15
|
+
Mui::Syntax::Lexers::JavaScriptLexer::TEMPLATE_LITERAL_END: Regexp
|
|
16
|
+
def tokenize: (untyped, ?nil) -> [untyped, untyped]
|
|
17
|
+
def compiled_patterns: -> Array[[:comment, Regexp] | [:constant, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:regex, Regexp] | [:string, Regexp]]
|
|
18
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, :template_literal, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
19
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [:template_literal, untyped, untyped] | [nil, nil, untyped])
|
|
20
|
+
def handle_block_comment: (untyped, untyped) -> ([nil, :block_comment, untyped] | [untyped, nil, untyped])
|
|
21
|
+
def handle_template_literal: (untyped, untyped) -> ([nil, :template_literal, untyped] | [untyped, nil, untyped])
|
|
22
|
+
def match_token: (untyped, untyped) -> nil
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/markdown_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::MarkdownLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::MarkdownLexer::COMPILED_PATTERNS: Array[[:comment, Regexp] | [:constant, Regexp] | [:keyword, Regexp] | [:preprocessor, Regexp] | [:string, Regexp]]
|
|
9
|
+
Mui::Syntax::Lexers::MarkdownLexer::HEADING_PATTERN: Regexp
|
|
10
|
+
Mui::Syntax::Lexers::MarkdownLexer::BLOCKQUOTE_PATTERN: Regexp
|
|
11
|
+
Mui::Syntax::Lexers::MarkdownLexer::UNORDERED_LIST_PATTERN: Regexp
|
|
12
|
+
Mui::Syntax::Lexers::MarkdownLexer::ORDERED_LIST_PATTERN: Regexp
|
|
13
|
+
Mui::Syntax::Lexers::MarkdownLexer::HORIZONTAL_RULE_PATTERN: Regexp
|
|
14
|
+
Mui::Syntax::Lexers::MarkdownLexer::CODE_FENCE_START: Regexp
|
|
15
|
+
Mui::Syntax::Lexers::MarkdownLexer::CODE_FENCE_END: Regexp
|
|
16
|
+
Mui::Syntax::Lexers::MarkdownLexer::LINK_DEFINITION_PATTERN: Regexp
|
|
17
|
+
def tokenize: (untyped, ?nil) -> ([[] | [untyped], :code_fence] | [[], nil] | [[untyped], :code_fence] | [[untyped], nil])
|
|
18
|
+
def compiled_patterns: -> Array[[:comment, Regexp] | [:constant, Regexp] | [:keyword, Regexp] | [:preprocessor, Regexp] | [:string, Regexp]]
|
|
19
|
+
def check_line_start: (untyped) -> nil
|
|
20
|
+
def match_token: (untyped, Integer) -> nil
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/ruby_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::RubyLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::RubyLexer::KEYWORDS: Array[String]
|
|
9
|
+
Mui::Syntax::Lexers::RubyLexer::COMPILED_PATTERNS: Array[[:comment, Regexp] | [:constant, Regexp] | [:function_definition, Regexp] | [:global_variable, Regexp] | [:identifier, Regexp] | [:instance_variable, Regexp] | [:keyword, Regexp] | [:method_call, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:string, Regexp] | [:symbol, Regexp]]
|
|
10
|
+
Mui::Syntax::Lexers::RubyLexer::BLOCK_COMMENT_END: Regexp
|
|
11
|
+
Mui::Syntax::Lexers::RubyLexer::BLOCK_COMMENT_START: Regexp
|
|
12
|
+
def compiled_patterns: -> Array[[:comment, Regexp] | [:constant, Regexp] | [:function_definition, Regexp] | [:global_variable, Regexp] | [:identifier, Regexp] | [:instance_variable, Regexp] | [:keyword, Regexp] | [:method_call, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:string, Regexp] | [:symbol, Regexp]]
|
|
13
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
14
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [nil, nil, untyped])
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/rust_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::RustLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::RustLexer::KEYWORDS: Array[String]
|
|
9
|
+
Mui::Syntax::Lexers::RustLexer::TYPES: Array[String]
|
|
10
|
+
Mui::Syntax::Lexers::RustLexer::COMPILED_PATTERNS: Array[[:char, Regexp] | [:comment, Regexp] | [:constant, Regexp] | [:function_definition, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:macro, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:symbol, Regexp] | [:type, Regexp]]
|
|
11
|
+
Mui::Syntax::Lexers::RustLexer::BLOCK_COMMENT_END: Regexp
|
|
12
|
+
Mui::Syntax::Lexers::RustLexer::BLOCK_COMMENT_START: Regexp
|
|
13
|
+
Mui::Syntax::Lexers::RustLexer::BLOCK_COMMENT_START_ANCHOR: Regexp
|
|
14
|
+
def compiled_patterns: -> Array[[:char, Regexp] | [:comment, Regexp] | [:constant, Regexp] | [:function_definition, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:macro, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:preprocessor, Regexp] | [:string, Regexp] | [:symbol, Regexp] | [:type, Regexp]]
|
|
15
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
16
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [nil, nil, untyped])
|
|
17
|
+
def match_token: (untyped, untyped) -> nil
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/lexers/typescript_lexer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
module Mui::Syntax::Lexers
|
|
7
|
+
class Mui::Syntax::Lexers::TypeScriptLexer # failed to identify its superclass
|
|
8
|
+
Mui::Syntax::Lexers::TypeScriptLexer::KEYWORDS: Array[String]
|
|
9
|
+
Mui::Syntax::Lexers::TypeScriptLexer::CONSTANTS: Array[String]
|
|
10
|
+
Mui::Syntax::Lexers::TypeScriptLexer::COMPILED_PATTERNS: Array[[:comment, Regexp] | [:constant, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:regex, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
11
|
+
Mui::Syntax::Lexers::TypeScriptLexer::BLOCK_COMMENT_END: Regexp
|
|
12
|
+
Mui::Syntax::Lexers::TypeScriptLexer::BLOCK_COMMENT_START: Regexp
|
|
13
|
+
Mui::Syntax::Lexers::TypeScriptLexer::BLOCK_COMMENT_START_ANCHOR: Regexp
|
|
14
|
+
Mui::Syntax::Lexers::TypeScriptLexer::TEMPLATE_LITERAL_START: Regexp
|
|
15
|
+
Mui::Syntax::Lexers::TypeScriptLexer::TEMPLATE_LITERAL_END: Regexp
|
|
16
|
+
def tokenize: (untyped, ?nil) -> [untyped, untyped]
|
|
17
|
+
def compiled_patterns: -> Array[[:comment, Regexp] | [:constant, Regexp] | [:identifier, Regexp] | [:keyword, Regexp] | [:number, Regexp] | [:operator, Regexp] | [:regex, Regexp] | [:string, Regexp] | [:type, Regexp]]
|
|
18
|
+
def handle_multiline_state: (untyped, untyped, untyped) -> ([nil, :block_comment, untyped] | [nil, :template_literal, untyped] | [nil, nil, untyped] | [untyped, nil, untyped])
|
|
19
|
+
def check_multiline_start: (untyped, untyped) -> ([:block_comment, untyped, untyped] | [:template_literal, untyped, untyped] | [nil, nil, untyped])
|
|
20
|
+
def handle_block_comment: (untyped, untyped) -> ([nil, :block_comment, untyped] | [untyped, nil, untyped])
|
|
21
|
+
def handle_template_literal: (untyped, untyped) -> ([nil, :template_literal, untyped] | [untyped, nil, untyped])
|
|
22
|
+
def match_token: (untyped, untyped) -> nil
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/token.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
class Mui::Syntax::Token
|
|
7
|
+
def type: -> untyped
|
|
8
|
+
def start_col: -> untyped
|
|
9
|
+
def end_col: -> untyped
|
|
10
|
+
def text: -> untyped
|
|
11
|
+
def initialize: (type: untyped, start_col: untyped, end_col: untyped, text: untyped) -> void
|
|
12
|
+
def ==: (untyped) -> false
|
|
13
|
+
def length: -> untyped
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/syntax/token_cache.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Syntax
|
|
6
|
+
class Mui::Syntax::TokenCache
|
|
7
|
+
Mui::Syntax::TokenCache::PREFETCH_LINES: Integer
|
|
8
|
+
def initialize: (untyped) -> void
|
|
9
|
+
def tokens_for: (untyped, untyped, untyped) -> untyped
|
|
10
|
+
def prefetch: (untyped, untyped, untyped) -> Range[Integer]?
|
|
11
|
+
def invalidate: (untyped) -> Hash[Integer, Hash[:line_hash | :state_after | :tokens, untyped]]
|
|
12
|
+
def clear: -> Hash[Integer, Hash[:line_hash | :state_after | :tokens, untyped]]
|
|
13
|
+
def cached?: (untyped) -> bool
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/tab_bar_renderer.rb
|
|
4
|
+
module Mui
|
|
5
|
+
class Mui::TabBarRenderer
|
|
6
|
+
Mui::TabBarRenderer::TAB_BAR_HEIGHT: Integer
|
|
7
|
+
Mui::TabBarRenderer::SEPARATOR_HEIGHT: Integer
|
|
8
|
+
Mui::TabBarRenderer::TAB_SEPARATOR: String
|
|
9
|
+
Mui::TabBarRenderer::SEPARATOR_CHAR: String
|
|
10
|
+
def initialize: (untyped, ?color_scheme: nil) -> void
|
|
11
|
+
def render: (untyped, ?Integer) -> nil
|
|
12
|
+
def height: -> Integer
|
|
13
|
+
def should_render?: -> untyped
|
|
14
|
+
def render_tabs: (untyped, Integer) -> nil
|
|
15
|
+
def render_separator_line: (untyped, Integer) -> untyped
|
|
16
|
+
def build_tab_text: (untyped, untyped) -> String
|
|
17
|
+
def truncate_name: (untyped, Integer) -> String
|
|
18
|
+
def tab_bar_style: -> Hash[:bg | :bold | :fg | :underline, :blue | :white | false]
|
|
19
|
+
def tab_bar_active_style: -> Hash[:bg | :bold | :fg | :underline, :blue | :white | false]
|
|
20
|
+
def separator_style: -> Hash[:bg | :bold | :fg | :underline, :blue | :white | false]
|
|
21
|
+
def default_style: -> Hash[:bg | :bold | :fg | :underline, :blue | :white | false]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/tab_manager.rb
|
|
4
|
+
module Mui
|
|
5
|
+
class Mui::TabManager
|
|
6
|
+
def tabs: -> []
|
|
7
|
+
def current_index: -> (Integer | Numeric)
|
|
8
|
+
def initialize: (untyped, ?color_scheme: nil) -> void
|
|
9
|
+
def current_tab: -> untyped
|
|
10
|
+
def add: (?nil) -> untyped
|
|
11
|
+
def close_current: -> bool
|
|
12
|
+
def next_tab: -> (Integer | Numeric)?
|
|
13
|
+
def prev_tab: -> (Integer | Numeric)?
|
|
14
|
+
def first_tab: -> Integer?
|
|
15
|
+
def last_tab: -> Integer?
|
|
16
|
+
def go_to: (untyped) -> bool
|
|
17
|
+
def move_tab: (untyped) -> bool
|
|
18
|
+
def tab_count: -> Integer
|
|
19
|
+
def single_tab?: -> bool
|
|
20
|
+
def window_manager: -> untyped
|
|
21
|
+
def active_window: -> untyped
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/tab_page.rb
|
|
4
|
+
module Mui
|
|
5
|
+
class Mui::TabPage
|
|
6
|
+
def window_manager: -> untyped
|
|
7
|
+
def name: -> nil
|
|
8
|
+
def name=: (untyped) -> nil
|
|
9
|
+
def initialize: (untyped, ?color_scheme: nil, ?name: nil) -> void
|
|
10
|
+
def active_window: -> untyped
|
|
11
|
+
def layout_root: -> untyped
|
|
12
|
+
def windows: -> untyped
|
|
13
|
+
def window_count: -> untyped
|
|
14
|
+
def display_name: -> String
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/terminal_adapter/base.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::TerminalAdapter
|
|
6
|
+
class Mui::TerminalAdapter::Base
|
|
7
|
+
def color_resolver: -> untyped
|
|
8
|
+
def color_resolver=: (untyped) -> untyped
|
|
9
|
+
def init: -> untyped
|
|
10
|
+
def close: -> untyped
|
|
11
|
+
def clear: -> untyped
|
|
12
|
+
def refresh: -> untyped
|
|
13
|
+
def width: -> untyped
|
|
14
|
+
def height: -> untyped
|
|
15
|
+
def setpos: (untyped, untyped) -> untyped
|
|
16
|
+
def addstr: (untyped) -> untyped
|
|
17
|
+
def with_highlight: -> untyped
|
|
18
|
+
def init_colors: -> untyped
|
|
19
|
+
def init_color_pair: (untyped, untyped, untyped) -> untyped
|
|
20
|
+
def with_color: (untyped, ?bold: false, ?underline: false) -> untyped
|
|
21
|
+
def getch: -> untyped
|
|
22
|
+
def getch_nonblock: -> untyped
|
|
23
|
+
def suspend: -> untyped
|
|
24
|
+
def resume: -> untyped
|
|
25
|
+
def has_colors?: -> untyped
|
|
26
|
+
def colors: -> untyped
|
|
27
|
+
def color_pairs: -> untyped
|
|
28
|
+
def touchwin: -> nil
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/terminal_adapter/curses.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::TerminalAdapter
|
|
6
|
+
class Mui::TerminalAdapter::Curses # failed to identify its superclass
|
|
7
|
+
def init: -> Integer?
|
|
8
|
+
def init_colors: -> Integer?
|
|
9
|
+
def has_colors?: -> bool
|
|
10
|
+
def colors: -> Integer
|
|
11
|
+
def color_pairs: -> Integer
|
|
12
|
+
def init_color_pair: (untyped, untyped, untyped) -> untyped
|
|
13
|
+
def with_color: (untyped, ?bold: false, ?underline: false) { () -> untyped } -> untyped
|
|
14
|
+
def close: -> untyped
|
|
15
|
+
def clear: -> untyped
|
|
16
|
+
def refresh: -> untyped
|
|
17
|
+
def width: -> untyped
|
|
18
|
+
def height: -> untyped
|
|
19
|
+
def setpos: (untyped, untyped) -> untyped
|
|
20
|
+
def addstr: (untyped) -> untyped
|
|
21
|
+
def with_highlight: { () -> untyped } -> untyped
|
|
22
|
+
def getch: -> String
|
|
23
|
+
def getch_nonblock: -> String?
|
|
24
|
+
def suspend: -> untyped
|
|
25
|
+
def resume: -> untyped
|
|
26
|
+
def touchwin: -> untyped
|
|
27
|
+
def color_code: (untyped) -> Integer
|
|
28
|
+
def read_utf8_char: (untyped) -> String
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/themes/default.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::Themes
|
|
6
|
+
def self.mui: -> untyped
|
|
7
|
+
def self.solarized_dark: -> untyped
|
|
8
|
+
def self.solarized_light: -> untyped
|
|
9
|
+
def self.monokai: -> untyped
|
|
10
|
+
def self.nord: -> untyped
|
|
11
|
+
def self.gruvbox_dark: -> untyped
|
|
12
|
+
def self.dracula: -> untyped
|
|
13
|
+
def self.tokyo_night: -> untyped
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/undo_manager.rb
|
|
4
|
+
module Mui
|
|
5
|
+
class Mui::UndoManager
|
|
6
|
+
Mui::UndoManager::MAX_STACK_SIZE: Integer
|
|
7
|
+
def initialize: -> void
|
|
8
|
+
def record: (untyped) -> Array[nil]
|
|
9
|
+
def begin_group: -> []
|
|
10
|
+
def end_group: -> nil
|
|
11
|
+
def in_group?: -> bool
|
|
12
|
+
def undo: (untyped) -> bool
|
|
13
|
+
def redo: (untyped) -> bool
|
|
14
|
+
def can_undo?: -> bool
|
|
15
|
+
def can_redo?: -> bool
|
|
16
|
+
def undo_stack_size: -> Integer
|
|
17
|
+
def redo_stack_size: -> Integer
|
|
18
|
+
def push_to_undo_stack: (untyped) -> Array[nil]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/undoable_action.rb
|
|
4
|
+
module Mui
|
|
5
|
+
class Mui::UndoableAction
|
|
6
|
+
def execute: (untyped) -> nil
|
|
7
|
+
def undo: (untyped) -> nil
|
|
8
|
+
end
|
|
9
|
+
class Mui::InsertCharAction < Mui::UndoableAction
|
|
10
|
+
def initialize: (untyped, untyped, untyped) -> void
|
|
11
|
+
def execute: (untyped) -> untyped
|
|
12
|
+
def undo: (untyped) -> untyped
|
|
13
|
+
end
|
|
14
|
+
class Mui::DeleteCharAction < Mui::UndoableAction
|
|
15
|
+
def initialize: (untyped, untyped, untyped) -> void
|
|
16
|
+
def execute: (untyped) -> untyped
|
|
17
|
+
def undo: (untyped) -> untyped
|
|
18
|
+
end
|
|
19
|
+
class Mui::InsertLineAction < Mui::UndoableAction
|
|
20
|
+
def initialize: (untyped, untyped) -> void
|
|
21
|
+
def execute: (untyped) -> untyped
|
|
22
|
+
def undo: (untyped) -> untyped
|
|
23
|
+
end
|
|
24
|
+
class Mui::DeleteLineAction < Mui::UndoableAction
|
|
25
|
+
def initialize: (untyped, untyped) -> void
|
|
26
|
+
def execute: (untyped) -> untyped
|
|
27
|
+
def undo: (untyped) -> untyped
|
|
28
|
+
end
|
|
29
|
+
class Mui::SplitLineAction < Mui::UndoableAction
|
|
30
|
+
def initialize: (untyped, untyped) -> void
|
|
31
|
+
def execute: (untyped) -> untyped
|
|
32
|
+
def undo: (untyped) -> untyped
|
|
33
|
+
end
|
|
34
|
+
class Mui::JoinLinesAction < Mui::UndoableAction
|
|
35
|
+
def initialize: (untyped, untyped) -> void
|
|
36
|
+
def execute: (untyped) -> untyped
|
|
37
|
+
def undo: (untyped) -> untyped
|
|
38
|
+
end
|
|
39
|
+
class Mui::DeleteRangeAction < Mui::UndoableAction
|
|
40
|
+
def initialize: (untyped, untyped, untyped, untyped, untyped) -> void
|
|
41
|
+
def execute: (untyped) -> untyped
|
|
42
|
+
def undo: (untyped) -> untyped
|
|
43
|
+
end
|
|
44
|
+
class Mui::ReplaceLineAction < Mui::UndoableAction
|
|
45
|
+
def initialize: (untyped, untyped, untyped) -> void
|
|
46
|
+
def execute: (untyped) -> untyped
|
|
47
|
+
def undo: (untyped) -> untyped
|
|
48
|
+
end
|
|
49
|
+
class Mui::GroupAction < Mui::UndoableAction
|
|
50
|
+
def initialize: (untyped) -> void
|
|
51
|
+
def execute: (untyped) -> untyped
|
|
52
|
+
def undo: (untyped) -> untyped
|
|
53
|
+
def empty?: -> untyped
|
|
54
|
+
def size: -> untyped
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# TypeProf 0.31.1
|
|
2
|
+
|
|
3
|
+
# lib/mui/unicode_width.rb
|
|
4
|
+
module Mui
|
|
5
|
+
module Mui::UnicodeWidth
|
|
6
|
+
def self.char_width: (untyped) -> Integer
|
|
7
|
+
def self.string_width: (untyped) -> Integer
|
|
8
|
+
def self.width_to_col: (untyped, untyped) -> Integer
|
|
9
|
+
def self.col_at_width: (untyped, untyped) -> Integer
|
|
10
|
+
def self.wide_char?: (untyped) -> bool
|
|
11
|
+
end
|
|
12
|
+
end
|