ruby-lsp 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +6 -0
  3. data/.rubocop.yml +16 -0
  4. data/CHANGELOG.md +13 -0
  5. data/Gemfile +8 -5
  6. data/Gemfile.lock +55 -10
  7. data/README.md +40 -0
  8. data/VERSION +1 -1
  9. data/bin/tapioca +29 -0
  10. data/dev.yml +3 -0
  11. data/exe/ruby-lsp +19 -4
  12. data/lib/internal.rb +7 -0
  13. data/lib/ruby-lsp.rb +1 -0
  14. data/lib/ruby_lsp/cli.rb +12 -5
  15. data/lib/ruby_lsp/document.rb +37 -14
  16. data/lib/ruby_lsp/handler.rb +78 -23
  17. data/lib/ruby_lsp/requests/base_request.rb +11 -0
  18. data/lib/ruby_lsp/requests/code_actions.rb +1 -0
  19. data/lib/ruby_lsp/requests/diagnostics.rb +1 -0
  20. data/lib/ruby_lsp/requests/document_highlight.rb +96 -0
  21. data/lib/ruby_lsp/requests/document_symbol.rb +1 -10
  22. data/lib/ruby_lsp/requests/folding_ranges.rb +3 -2
  23. data/lib/ruby_lsp/requests/formatting.rb +2 -1
  24. data/lib/ruby_lsp/requests/rubocop_request.rb +1 -0
  25. data/lib/ruby_lsp/requests/selection_ranges.rb +1 -0
  26. data/lib/ruby_lsp/requests/semantic_highlighting.rb +17 -3
  27. data/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb +1 -0
  28. data/lib/ruby_lsp/requests/support/selection_range.rb +1 -0
  29. data/lib/ruby_lsp/requests/support/semantic_token_encoder.rb +12 -1
  30. data/lib/ruby_lsp/requests/support/syntax_error_diagnostic.rb +1 -0
  31. data/lib/ruby_lsp/requests.rb +2 -0
  32. data/lib/ruby_lsp/store.rb +19 -3
  33. data/rakelib/check_docs.rake +4 -1
  34. data/ruby-lsp.gemspec +1 -0
  35. data/sorbet/config +4 -0
  36. data/sorbet/rbi/.rubocop.yml +8 -0
  37. data/sorbet/rbi/gems/ansi@1.5.0.rbi +338 -0
  38. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  39. data/sorbet/rbi/gems/builder@3.2.4.rbi +418 -0
  40. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  41. data/sorbet/rbi/gems/debug@1.5.0.rbi +1273 -0
  42. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +867 -0
  43. data/sorbet/rbi/gems/io-console@0.5.11.rbi +8 -0
  44. data/sorbet/rbi/gems/irb@1.4.1.rbi +376 -0
  45. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +7325 -0
  46. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  47. data/sorbet/rbi/gems/minitest-reporters@1.5.0.rbi +612 -0
  48. data/sorbet/rbi/gems/minitest@5.15.0.rbi +994 -0
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.0.rbi +3968 -0
  51. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +734 -0
  52. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  53. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  54. data/sorbet/rbi/gems/rake@13.0.6.rbi +1853 -0
  55. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  56. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1854 -0
  57. data/sorbet/rbi/gems/reline@0.3.1.rbi +1274 -0
  58. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  59. data/sorbet/rbi/gems/rubocop-ast@1.18.0.rbi +4180 -0
  60. data/sorbet/rbi/gems/rubocop-minitest@0.20.0.rbi +1369 -0
  61. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +246 -0
  62. data/sorbet/rbi/gems/rubocop-shopify@2.6.0.rbi +8 -0
  63. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +652 -0
  64. data/sorbet/rbi/gems/rubocop@1.30.0.rbi +36729 -0
  65. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  66. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  67. data/sorbet/rbi/gems/syntax_tree@2.7.1.rbi +6777 -0
  68. data/sorbet/rbi/gems/tapioca@0.8.1.rbi +1972 -0
  69. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  70. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +27 -0
  71. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  72. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1779 -0
  73. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +289 -0
  74. data/sorbet/rbi/gems/yard@0.9.27.rbi +13048 -0
  75. data/sorbet/rbi/shims/fiddle.rbi +4 -0
  76. data/sorbet/rbi/shims/hash.rbi +6 -0
  77. data/sorbet/rbi/shims/rdoc.rbi +4 -0
  78. data/sorbet/tapioca/config.yml +13 -0
  79. data/sorbet/tapioca/require.rb +7 -0
  80. metadata +64 -2
@@ -0,0 +1,1274 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `reline` gem.
5
+ # Please instead update this file by running `bin/tapioca gem reline`.
6
+
7
+ module Reline
8
+ extend ::Forwardable
9
+ extend ::SingleForwardable
10
+
11
+ def eof?(*args, **_arg1, &block); end
12
+
13
+ private
14
+
15
+ def readline(*args, **_arg1, &block); end
16
+ def readmultiline(*args, **_arg1, &block); end
17
+
18
+ class << self
19
+ def add_dialog_proc(*args, **_arg1, &block); end
20
+ def ambiguous_width(*args, **_arg1, &block); end
21
+ def auto_indent_proc(*args, **_arg1, &block); end
22
+ def auto_indent_proc=(*args, **_arg1, &block); end
23
+ def autocompletion(*args, **_arg1, &block); end
24
+ def autocompletion=(*args, **_arg1, &block); end
25
+ def basic_quote_characters(*args, **_arg1, &block); end
26
+ def basic_quote_characters=(*args, **_arg1, &block); end
27
+ def basic_word_break_characters(*args, **_arg1, &block); end
28
+ def basic_word_break_characters=(*args, **_arg1, &block); end
29
+ def completer_quote_characters(*args, **_arg1, &block); end
30
+ def completer_quote_characters=(*args, **_arg1, &block); end
31
+ def completer_word_break_characters(*args, **_arg1, &block); end
32
+ def completer_word_break_characters=(*args, **_arg1, &block); end
33
+ def completion_append_character(*args, **_arg1, &block); end
34
+ def completion_append_character=(*args, **_arg1, &block); end
35
+ def completion_case_fold(*args, **_arg1, &block); end
36
+ def completion_case_fold=(*args, **_arg1, &block); end
37
+ def completion_proc(*args, **_arg1, &block); end
38
+ def completion_proc=(*args, **_arg1, &block); end
39
+ def completion_quote_character(*args, **_arg1, &block); end
40
+ def core; end
41
+ def delete_text(*args, **_arg1, &block); end
42
+ def dialog_proc(*args, **_arg1, &block); end
43
+ def dig_perfect_match_proc(*args, **_arg1, &block); end
44
+ def dig_perfect_match_proc=(*args, **_arg1, &block); end
45
+ def emacs_editing_mode(*args, **_arg1, &block); end
46
+ def emacs_editing_mode?(*args, **_arg1, &block); end
47
+ def encoding_system_needs; end
48
+ def eof?(*args, **_arg1, &block); end
49
+ def filename_quote_characters(*args, **_arg1, &block); end
50
+ def filename_quote_characters=(*args, **_arg1, &block); end
51
+ def get_screen_size(*args, **_arg1, &block); end
52
+ def input=(*args, **_arg1, &block); end
53
+ def insert_text(*args, &block); end
54
+ def last_incremental_search(*args, **_arg1, &block); end
55
+ def last_incremental_search=(*args, **_arg1, &block); end
56
+ def line_buffer(*args, **_arg1, &block); end
57
+ def line_editor; end
58
+ def output=(*args, **_arg1, &block); end
59
+ def output_modifier_proc(*args, **_arg1, &block); end
60
+ def output_modifier_proc=(*args, **_arg1, &block); end
61
+ def point(*args, **_arg1, &block); end
62
+ def point=(*args, **_arg1, &block); end
63
+ def pre_input_hook(*args, **_arg1, &block); end
64
+ def pre_input_hook=(*args, **_arg1, &block); end
65
+ def prompt_proc(*args, **_arg1, &block); end
66
+ def prompt_proc=(*args, **_arg1, &block); end
67
+ def readline(*args, **_arg1, &block); end
68
+ def readmultiline(*args, **_arg1, &block); end
69
+ def redisplay(*args, **_arg1, &block); end
70
+ def special_prefixes(*args, **_arg1, &block); end
71
+ def special_prefixes=(*args, **_arg1, &block); end
72
+ def ungetc(c); end
73
+ def vi_editing_mode(*args, **_arg1, &block); end
74
+ def vi_editing_mode?(*args, **_arg1, &block); end
75
+ end
76
+ end
77
+
78
+ class Reline::ANSI
79
+ class << self
80
+ def clear_screen; end
81
+ def cursor_pos; end
82
+ def deprep(otio); end
83
+
84
+ # @return [Boolean]
85
+ def empty_buffer?; end
86
+
87
+ def encoding; end
88
+ def erase_after_cursor; end
89
+ def get_screen_size; end
90
+ def getc; end
91
+ def getc_with_bracketed_paste; end
92
+ def hide_cursor; end
93
+
94
+ # @return [Boolean]
95
+ def in_pasting?; end
96
+
97
+ def inner_getc; end
98
+ def input=(val); end
99
+ def move_cursor_column(x); end
100
+ def move_cursor_down(x); end
101
+ def move_cursor_up(x); end
102
+ def output=(val); end
103
+ def prep; end
104
+ def retrieve_keybuffer; end
105
+ def scroll_down(x); end
106
+ def set_default_key_bindings(config); end
107
+ def set_default_key_bindings_comprehensive_list(config); end
108
+ def set_default_key_bindings_terminfo(config); end
109
+ def set_screen_size(rows, columns); end
110
+ def set_winch_handler(&handler); end
111
+ def show_cursor; end
112
+ def ungetc(c); end
113
+
114
+ # @return [Boolean]
115
+ def win?; end
116
+ end
117
+ end
118
+
119
+ Reline::ANSI::CAPNAME_KEY_BINDINGS = T.let(T.unsafe(nil), Hash)
120
+ Reline::ANSI::END_BRACKETED_PASTE = T.let(T.unsafe(nil), String)
121
+ Reline::ANSI::START_BRACKETED_PASTE = T.let(T.unsafe(nil), String)
122
+
123
+ class Reline::Config
124
+ # @return [Config] a new instance of Config
125
+ def initialize; end
126
+
127
+ def add_default_key_binding(keystroke, target); end
128
+ def add_default_key_binding_by_keymap(keymap, keystroke, target); end
129
+ def add_oneshot_key_binding(keystroke, target); end
130
+ def autocompletion; end
131
+ def autocompletion=(val); end
132
+ def bind_key(key, func_name); end
133
+ def bind_tty_special_chars; end
134
+ def bind_tty_special_chars=(_arg0); end
135
+ def bind_variable(name, value); end
136
+ def blink_matching_paren; end
137
+ def blink_matching_paren=(_arg0); end
138
+ def byte_oriented; end
139
+ def byte_oriented=(_arg0); end
140
+ def completion_ignore_case; end
141
+ def completion_ignore_case=(_arg0); end
142
+ def convert_meta; end
143
+ def convert_meta=(_arg0); end
144
+ def disable_completion; end
145
+ def disable_completion=(_arg0); end
146
+ def editing_mode; end
147
+ def editing_mode=(val); end
148
+
149
+ # @return [Boolean]
150
+ def editing_mode_is?(*val); end
151
+
152
+ def emacs_mode_string; end
153
+ def emacs_mode_string=(_arg0); end
154
+ def enable_bracketed_paste; end
155
+ def enable_bracketed_paste=(_arg0); end
156
+ def enable_keypad; end
157
+ def enable_keypad=(_arg0); end
158
+ def expand_tilde; end
159
+ def expand_tilde=(_arg0); end
160
+ def handle_directive(directive, file, no); end
161
+ def history_preserve_point; end
162
+ def history_preserve_point=(_arg0); end
163
+ def history_size; end
164
+ def history_size=(_arg0); end
165
+ def horizontal_scroll_mode; end
166
+ def horizontal_scroll_mode=(_arg0); end
167
+ def input_meta; end
168
+ def input_meta=(_arg0); end
169
+ def inputrc_path; end
170
+ def isearch_terminators; end
171
+ def isearch_terminators=(_arg0); end
172
+ def key_bindings; end
173
+ def key_notation_to_code(notation); end
174
+ def keymap; end
175
+ def keyseq_timeout; end
176
+ def keyseq_timeout=(_arg0); end
177
+ def mark_directories; end
178
+ def mark_directories=(_arg0); end
179
+ def mark_modified_lines; end
180
+ def mark_modified_lines=(_arg0); end
181
+ def mark_symlinked_directories; end
182
+ def mark_symlinked_directories=(_arg0); end
183
+ def match_hidden_files; end
184
+ def match_hidden_files=(_arg0); end
185
+ def meta_flag; end
186
+ def meta_flag=(_arg0); end
187
+ def output_meta; end
188
+ def output_meta=(_arg0); end
189
+ def page_completions; end
190
+ def page_completions=(_arg0); end
191
+ def parse_keyseq(str); end
192
+ def prefer_visible_bell; end
193
+ def prefer_visible_bell=(_arg0); end
194
+ def print_completions_horizontally; end
195
+ def print_completions_horizontally=(_arg0); end
196
+ def read(file = T.unsafe(nil)); end
197
+ def read_lines(lines, file = T.unsafe(nil)); end
198
+ def reset; end
199
+ def reset_default_key_bindings; end
200
+ def reset_oneshot_key_bindings; end
201
+ def retrieve_string(str); end
202
+ def show_all_if_ambiguous; end
203
+ def show_all_if_ambiguous=(_arg0); end
204
+ def show_all_if_unmodified; end
205
+ def show_all_if_unmodified=(_arg0); end
206
+ def show_mode_in_prompt; end
207
+ def show_mode_in_prompt=(_arg0); end
208
+
209
+ # Returns the value of attribute test_mode.
210
+ def test_mode; end
211
+
212
+ def vi_cmd_mode_string; end
213
+ def vi_cmd_mode_string=(_arg0); end
214
+ def vi_ins_mode_string; end
215
+ def vi_ins_mode_string=(_arg0); end
216
+ def visible_stats; end
217
+ def visible_stats=(_arg0); end
218
+
219
+ private
220
+
221
+ def default_inputrc_path; end
222
+
223
+ # @return [Boolean]
224
+ def seven_bit_encoding?(encoding); end
225
+ end
226
+
227
+ class Reline::Config::InvalidInputrc < ::RuntimeError
228
+ # Returns the value of attribute file.
229
+ def file; end
230
+
231
+ # Sets the attribute file
232
+ #
233
+ # @param value the value to set the attribute file to.
234
+ def file=(_arg0); end
235
+
236
+ # Returns the value of attribute lineno.
237
+ def lineno; end
238
+
239
+ # Sets the attribute lineno
240
+ #
241
+ # @param value the value to set the attribute lineno to.
242
+ def lineno=(_arg0); end
243
+ end
244
+
245
+ Reline::Config::KEYSEQ_PATTERN = T.let(T.unsafe(nil), Regexp)
246
+ Reline::Config::VARIABLE_NAMES = T.let(T.unsafe(nil), Array)
247
+ Reline::Config::VARIABLE_NAME_SYMBOLS = T.let(T.unsafe(nil), Array)
248
+ class Reline::ConfigEncodingConversionError < ::StandardError; end
249
+
250
+ class Reline::Core
251
+ # @return [Core] a new instance of Core
252
+ # @yield [_self]
253
+ # @yieldparam _self [Reline::Core] the object that the method was called on
254
+ def initialize; end
255
+
256
+ # @raise [ArgumentError]
257
+ def add_dialog_proc(name_sym, p, context = T.unsafe(nil)); end
258
+
259
+ def ambiguous_width; end
260
+ def auto_indent_proc; end
261
+
262
+ # @raise [ArgumentError]
263
+ def auto_indent_proc=(p); end
264
+
265
+ def autocompletion; end
266
+ def autocompletion=(val); end
267
+ def basic_quote_characters; end
268
+ def basic_quote_characters=(v); end
269
+ def basic_word_break_characters; end
270
+ def basic_word_break_characters=(v); end
271
+ def completer_quote_characters; end
272
+ def completer_quote_characters=(v); end
273
+ def completer_word_break_characters; end
274
+ def completer_word_break_characters=(v); end
275
+ def completion_append_character; end
276
+ def completion_append_character=(val); end
277
+ def completion_case_fold; end
278
+ def completion_case_fold=(v); end
279
+ def completion_proc; end
280
+
281
+ # @raise [ArgumentError]
282
+ def completion_proc=(p); end
283
+
284
+ def completion_quote_character; end
285
+
286
+ # Returns the value of attribute config.
287
+ def config; end
288
+
289
+ # Sets the attribute config
290
+ #
291
+ # @param value the value to set the attribute config to.
292
+ def config=(_arg0); end
293
+
294
+ def dialog_proc(name_sym); end
295
+ def dig_perfect_match_proc; end
296
+
297
+ # @raise [ArgumentError]
298
+ def dig_perfect_match_proc=(p); end
299
+
300
+ def emacs_editing_mode; end
301
+
302
+ # @return [Boolean]
303
+ def emacs_editing_mode?; end
304
+
305
+ def encoding; end
306
+ def filename_quote_characters; end
307
+ def filename_quote_characters=(v); end
308
+ def get_screen_size; end
309
+
310
+ # @raise [TypeError]
311
+ def input=(val); end
312
+
313
+ # Returns the value of attribute key_stroke.
314
+ def key_stroke; end
315
+
316
+ # Sets the attribute key_stroke
317
+ #
318
+ # @param value the value to set the attribute key_stroke to.
319
+ def key_stroke=(_arg0); end
320
+
321
+ # Returns the value of attribute last_incremental_search.
322
+ def last_incremental_search; end
323
+
324
+ # Sets the attribute last_incremental_search
325
+ #
326
+ # @param value the value to set the attribute last_incremental_search to.
327
+ def last_incremental_search=(_arg0); end
328
+
329
+ # Returns the value of attribute line_editor.
330
+ def line_editor; end
331
+
332
+ # Sets the attribute line_editor
333
+ #
334
+ # @param value the value to set the attribute line_editor to.
335
+ def line_editor=(_arg0); end
336
+
337
+ # Returns the value of attribute output.
338
+ def output; end
339
+
340
+ # @raise [TypeError]
341
+ def output=(val); end
342
+
343
+ def output_modifier_proc; end
344
+
345
+ # @raise [ArgumentError]
346
+ def output_modifier_proc=(p); end
347
+
348
+ def pre_input_hook; end
349
+ def pre_input_hook=(p); end
350
+ def prompt_proc; end
351
+
352
+ # @raise [ArgumentError]
353
+ def prompt_proc=(p); end
354
+
355
+ def readline(prompt = T.unsafe(nil), add_hist = T.unsafe(nil)); end
356
+ def readmultiline(prompt = T.unsafe(nil), add_hist = T.unsafe(nil), &confirm_multiline_termination); end
357
+ def special_prefixes; end
358
+ def special_prefixes=(v); end
359
+ def vi_editing_mode; end
360
+
361
+ # @return [Boolean]
362
+ def vi_editing_mode?; end
363
+
364
+ private
365
+
366
+ def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination); end
367
+ def may_req_ambiguous_char_width; end
368
+ def read_2nd_character_of_key_sequence(keyseq_timeout, buffer, c, block); end
369
+ def read_escaped_key(keyseq_timeout, c, block); end
370
+
371
+ # GNU Readline waits for "keyseq-timeout" milliseconds to see if the ESC
372
+ # is followed by a character, and times out and treats it as a standalone
373
+ # ESC if the second character does not arrive. If the second character
374
+ # comes before timed out, it is treated as a modifier key with the
375
+ # meta-property of meta-key, so that it can be distinguished from
376
+ # multibyte characters with the 8th bit turned on.
377
+ #
378
+ # GNU Readline will wait for the 2nd character with "keyseq-timeout"
379
+ # milli-seconds but wait forever after 3rd characters.
380
+ def read_io(keyseq_timeout, &block); end
381
+ end
382
+
383
+ Reline::Core::ATTR_READER_NAMES = T.let(T.unsafe(nil), Array)
384
+
385
+ class Reline::Core::DialogProc < ::Struct
386
+ # Returns the value of attribute context
387
+ #
388
+ # @return [Object] the current value of context
389
+ def context; end
390
+
391
+ # Sets the attribute context
392
+ #
393
+ # @param value [Object] the value to set the attribute context to.
394
+ # @return [Object] the newly set value
395
+ def context=(_); end
396
+
397
+ # Returns the value of attribute dialog_proc
398
+ #
399
+ # @return [Object] the current value of dialog_proc
400
+ def dialog_proc; end
401
+
402
+ # Sets the attribute dialog_proc
403
+ #
404
+ # @param value [Object] the value to set the attribute dialog_proc to.
405
+ # @return [Object] the newly set value
406
+ def dialog_proc=(_); end
407
+
408
+ class << self
409
+ def [](*_arg0); end
410
+ def inspect; end
411
+ def keyword_init?; end
412
+ def members; end
413
+ def new(*_arg0); end
414
+ end
415
+ end
416
+
417
+ class Reline::CursorPos < ::Struct
418
+ # Returns the value of attribute x
419
+ #
420
+ # @return [Object] the current value of x
421
+ def x; end
422
+
423
+ # Sets the attribute x
424
+ #
425
+ # @param value [Object] the value to set the attribute x to.
426
+ # @return [Object] the newly set value
427
+ def x=(_); end
428
+
429
+ # Returns the value of attribute y
430
+ #
431
+ # @return [Object] the current value of y
432
+ def y; end
433
+
434
+ # Sets the attribute y
435
+ #
436
+ # @param value [Object] the value to set the attribute y to.
437
+ # @return [Object] the newly set value
438
+ def y=(_); end
439
+
440
+ class << self
441
+ def [](*_arg0); end
442
+ def inspect; end
443
+ def keyword_init?; end
444
+ def members; end
445
+ def new(*_arg0); end
446
+ end
447
+ end
448
+
449
+ Reline::DEFAULT_DIALOG_CONTEXT = T.let(T.unsafe(nil), Array)
450
+ Reline::DEFAULT_DIALOG_PROC_AUTOCOMPLETE = T.let(T.unsafe(nil), Proc)
451
+
452
+ class Reline::DialogRenderInfo < ::Struct
453
+ # Returns the value of attribute bg_color
454
+ #
455
+ # @return [Object] the current value of bg_color
456
+ def bg_color; end
457
+
458
+ # Sets the attribute bg_color
459
+ #
460
+ # @param value [Object] the value to set the attribute bg_color to.
461
+ # @return [Object] the newly set value
462
+ def bg_color=(_); end
463
+
464
+ # Returns the value of attribute contents
465
+ #
466
+ # @return [Object] the current value of contents
467
+ def contents; end
468
+
469
+ # Sets the attribute contents
470
+ #
471
+ # @param value [Object] the value to set the attribute contents to.
472
+ # @return [Object] the newly set value
473
+ def contents=(_); end
474
+
475
+ # Returns the value of attribute height
476
+ #
477
+ # @return [Object] the current value of height
478
+ def height; end
479
+
480
+ # Sets the attribute height
481
+ #
482
+ # @param value [Object] the value to set the attribute height to.
483
+ # @return [Object] the newly set value
484
+ def height=(_); end
485
+
486
+ # Returns the value of attribute pos
487
+ #
488
+ # @return [Object] the current value of pos
489
+ def pos; end
490
+
491
+ # Sets the attribute pos
492
+ #
493
+ # @param value [Object] the value to set the attribute pos to.
494
+ # @return [Object] the newly set value
495
+ def pos=(_); end
496
+
497
+ # Returns the value of attribute scrollbar
498
+ #
499
+ # @return [Object] the current value of scrollbar
500
+ def scrollbar; end
501
+
502
+ # Sets the attribute scrollbar
503
+ #
504
+ # @param value [Object] the value to set the attribute scrollbar to.
505
+ # @return [Object] the newly set value
506
+ def scrollbar=(_); end
507
+
508
+ # Returns the value of attribute width
509
+ #
510
+ # @return [Object] the current value of width
511
+ def width; end
512
+
513
+ # Sets the attribute width
514
+ #
515
+ # @param value [Object] the value to set the attribute width to.
516
+ # @return [Object] the newly set value
517
+ def width=(_); end
518
+
519
+ class << self
520
+ def [](*_arg0); end
521
+ def inspect; end
522
+ def keyword_init?; end
523
+ def members; end
524
+ def new(*_arg0); end
525
+ end
526
+ end
527
+
528
+ class Reline::GeneralIO
529
+ class << self
530
+ def clear_screen; end
531
+ def cursor_pos; end
532
+ def deprep(otio); end
533
+ def encoding; end
534
+ def erase_after_cursor; end
535
+ def finish_pasting; end
536
+ def get_screen_size; end
537
+ def getc; end
538
+
539
+ # @return [Boolean]
540
+ def in_pasting?; end
541
+
542
+ def input=(val); end
543
+ def move_cursor_column(val); end
544
+ def move_cursor_down(val); end
545
+ def move_cursor_up(val); end
546
+ def prep; end
547
+ def reset(encoding: T.unsafe(nil)); end
548
+ def scroll_down(val); end
549
+ def set_default_key_bindings(_); end
550
+ def set_screen_size(rows, columns); end
551
+ def set_winch_handler(&handler); end
552
+ def start_pasting; end
553
+ def ungetc(c); end
554
+
555
+ # @return [Boolean]
556
+ def win?; end
557
+ end
558
+ end
559
+
560
+ Reline::HISTORY = T.let(T.unsafe(nil), Reline::History)
561
+
562
+ class Reline::History < ::Array
563
+ # @return [History] a new instance of History
564
+ def initialize(config); end
565
+
566
+ def <<(val); end
567
+ def [](index); end
568
+ def []=(index, val); end
569
+ def concat(*val); end
570
+ def delete_at(index); end
571
+ def push(*val); end
572
+ def to_s; end
573
+
574
+ private
575
+
576
+ # @raise [IndexError]
577
+ def check_index(index); end
578
+ end
579
+
580
+ Reline::IOGate = Reline::ANSI
581
+ Reline::Key = Struct
582
+ module Reline::KeyActor; end
583
+
584
+ class Reline::KeyActor::Base
585
+ # @return [Base] a new instance of Base
586
+ def initialize; end
587
+
588
+ def default_key_bindings; end
589
+ def get_method(key); end
590
+ def reset_default_key_bindings; end
591
+ end
592
+
593
+ Reline::KeyActor::Base::MAPPING = T.let(T.unsafe(nil), Array)
594
+ class Reline::KeyActor::Emacs < ::Reline::KeyActor::Base; end
595
+ Reline::KeyActor::Emacs::MAPPING = T.let(T.unsafe(nil), Array)
596
+ class Reline::KeyActor::ViCommand < ::Reline::KeyActor::Base; end
597
+ Reline::KeyActor::ViCommand::MAPPING = T.let(T.unsafe(nil), Array)
598
+ class Reline::KeyActor::ViInsert < ::Reline::KeyActor::Base; end
599
+ Reline::KeyActor::ViInsert::MAPPING = T.let(T.unsafe(nil), Array)
600
+
601
+ class Reline::KeyStroke
602
+ # @return [KeyStroke] a new instance of KeyStroke
603
+ def initialize(config); end
604
+
605
+ def compress_meta_key(ary); end
606
+
607
+ # @return [Boolean]
608
+ def equal?(me, other); end
609
+
610
+ def expand(input); end
611
+ def match_status(input); end
612
+
613
+ # @return [Boolean]
614
+ def start_with?(me, other); end
615
+
616
+ private
617
+
618
+ def key_mapping; end
619
+ end
620
+
621
+ class Reline::KillRing
622
+ include ::Enumerable
623
+
624
+ # @return [KillRing] a new instance of KillRing
625
+ def initialize(max = T.unsafe(nil)); end
626
+
627
+ def append(string, before_p = T.unsafe(nil)); end
628
+ def each; end
629
+ def process; end
630
+ def yank; end
631
+ def yank_pop; end
632
+ end
633
+
634
+ class Reline::KillRing::RingBuffer
635
+ # @return [RingBuffer] a new instance of RingBuffer
636
+ def initialize(max = T.unsafe(nil)); end
637
+
638
+ def <<(point); end
639
+
640
+ # @return [Boolean]
641
+ def empty?; end
642
+
643
+ # Returns the value of attribute head.
644
+ def head; end
645
+
646
+ # Returns the value of attribute size.
647
+ def size; end
648
+ end
649
+
650
+ class Reline::KillRing::RingPoint < ::Struct
651
+ # @return [RingPoint] a new instance of RingPoint
652
+ def initialize(str); end
653
+
654
+ def ==(other); end
655
+
656
+ # Returns the value of attribute backward
657
+ #
658
+ # @return [Object] the current value of backward
659
+ def backward; end
660
+
661
+ # Sets the attribute backward
662
+ #
663
+ # @param value [Object] the value to set the attribute backward to.
664
+ # @return [Object] the newly set value
665
+ def backward=(_); end
666
+
667
+ # Returns the value of attribute forward
668
+ #
669
+ # @return [Object] the current value of forward
670
+ def forward; end
671
+
672
+ # Sets the attribute forward
673
+ #
674
+ # @param value [Object] the value to set the attribute forward to.
675
+ # @return [Object] the newly set value
676
+ def forward=(_); end
677
+
678
+ # Returns the value of attribute str
679
+ #
680
+ # @return [Object] the current value of str
681
+ def str; end
682
+
683
+ # Sets the attribute str
684
+ #
685
+ # @param value [Object] the value to set the attribute str to.
686
+ # @return [Object] the newly set value
687
+ def str=(_); end
688
+
689
+ class << self
690
+ def [](*_arg0); end
691
+ def inspect; end
692
+ def keyword_init?; end
693
+ def members; end
694
+ def new(*_arg0); end
695
+ end
696
+ end
697
+
698
+ module Reline::KillRing::State; end
699
+ Reline::KillRing::State::CONTINUED = T.let(T.unsafe(nil), Symbol)
700
+ Reline::KillRing::State::FRESH = T.let(T.unsafe(nil), Symbol)
701
+ Reline::KillRing::State::PROCESSED = T.let(T.unsafe(nil), Symbol)
702
+ Reline::KillRing::State::YANK = T.let(T.unsafe(nil), Symbol)
703
+
704
+ class Reline::LineEditor
705
+ # @return [LineEditor] a new instance of LineEditor
706
+ def initialize(config, encoding); end
707
+
708
+ def add_dialog_proc(name, p, context = T.unsafe(nil)); end
709
+
710
+ # Returns the value of attribute auto_indent_proc.
711
+ def auto_indent_proc; end
712
+
713
+ # Sets the attribute auto_indent_proc
714
+ #
715
+ # @param value the value to set the attribute auto_indent_proc to.
716
+ def auto_indent_proc=(_arg0); end
717
+
718
+ # Returns the value of attribute byte_pointer.
719
+ def byte_pointer; end
720
+
721
+ def byte_pointer=(val); end
722
+ def call_completion_proc; end
723
+ def call_completion_proc_with_checking_args(pre, target, post); end
724
+
725
+ # Returns the value of attribute completion_append_character.
726
+ def completion_append_character; end
727
+
728
+ # Sets the attribute completion_append_character
729
+ #
730
+ # @param value the value to set the attribute completion_append_character to.
731
+ def completion_append_character=(_arg0); end
732
+
733
+ # Returns the value of attribute completion_proc.
734
+ def completion_proc; end
735
+
736
+ # Sets the attribute completion_proc
737
+ #
738
+ # @param value the value to set the attribute completion_proc to.
739
+ def completion_proc=(_arg0); end
740
+
741
+ def confirm_multiline_termination; end
742
+
743
+ # Returns the value of attribute confirm_multiline_termination_proc.
744
+ def confirm_multiline_termination_proc; end
745
+
746
+ # Sets the attribute confirm_multiline_termination_proc
747
+ #
748
+ # @param value the value to set the attribute confirm_multiline_termination_proc to.
749
+ def confirm_multiline_termination_proc=(_arg0); end
750
+
751
+ def delete_text(start = T.unsafe(nil), length = T.unsafe(nil)); end
752
+
753
+ # Returns the value of attribute dig_perfect_match_proc.
754
+ def dig_perfect_match_proc; end
755
+
756
+ # Sets the attribute dig_perfect_match_proc
757
+ #
758
+ # @param value the value to set the attribute dig_perfect_match_proc to.
759
+ def dig_perfect_match_proc=(_arg0); end
760
+
761
+ def editing_mode; end
762
+
763
+ # @return [Boolean]
764
+ def eof?; end
765
+
766
+ def finalize; end
767
+ def finish; end
768
+
769
+ # @return [Boolean]
770
+ def finished?; end
771
+
772
+ def input_key(key); end
773
+ def insert_text(text); end
774
+ def just_move_cursor; end
775
+
776
+ # TODO: undo
777
+ # TODO: Use "private alias_method" idiom after drop Ruby 2.5.
778
+ def line; end
779
+
780
+ def multiline_off; end
781
+ def multiline_on; end
782
+
783
+ # Sets the attribute output
784
+ #
785
+ # @param value the value to set the attribute output to.
786
+ def output=(_arg0); end
787
+
788
+ # Returns the value of attribute output_modifier_proc.
789
+ def output_modifier_proc; end
790
+
791
+ # Sets the attribute output_modifier_proc
792
+ #
793
+ # @param value the value to set the attribute output_modifier_proc to.
794
+ def output_modifier_proc=(_arg0); end
795
+
796
+ # Returns the value of attribute pre_input_hook.
797
+ def pre_input_hook; end
798
+
799
+ # Sets the attribute pre_input_hook
800
+ #
801
+ # @param value the value to set the attribute pre_input_hook to.
802
+ def pre_input_hook=(_arg0); end
803
+
804
+ # Returns the value of attribute prompt_proc.
805
+ def prompt_proc; end
806
+
807
+ # Sets the attribute prompt_proc
808
+ #
809
+ # @param value the value to set the attribute prompt_proc to.
810
+ def prompt_proc=(_arg0); end
811
+
812
+ def rerender; end
813
+ def rerender_all; end
814
+ def reset(prompt = T.unsafe(nil), encoding:); end
815
+ def reset_line; end
816
+ def reset_variables(prompt = T.unsafe(nil), encoding:); end
817
+ def resize; end
818
+ def retrieve_completion_block(set_completion_quote_character = T.unsafe(nil)); end
819
+ def set_pasting_state(in_pasting); end
820
+ def set_signal_handlers; end
821
+
822
+ # @return [Boolean]
823
+ def simplified_rendering?; end
824
+
825
+ def whole_buffer; end
826
+ def whole_lines(index: T.unsafe(nil), line: T.unsafe(nil)); end
827
+ def wrap_method_call(method_symbol, method_obj, key, with_operator = T.unsafe(nil)); end
828
+
829
+ private
830
+
831
+ # @return [Boolean]
832
+ def argumentable?(method_obj); end
833
+
834
+ def backward_char(key, arg: T.unsafe(nil)); end
835
+ def backward_delete_char(key, arg: T.unsafe(nil)); end
836
+ def backward_word(key); end
837
+ def beginning_of_line(key); end
838
+ def byteinsert(str, byte_pointer, other); end
839
+ def byteslice!(str, byte_pointer, size); end
840
+ def calculate_height_by_lines(lines, prompt); end
841
+ def calculate_height_by_width(width); end
842
+ def calculate_nearest_cursor(line_to_calc = T.unsafe(nil), cursor = T.unsafe(nil), started_from = T.unsafe(nil), byte_pointer = T.unsafe(nil), update = T.unsafe(nil)); end
843
+ def calculate_scroll_partial_screen(highest_in_all, cursor_y); end
844
+ def calculate_width(str, allow_escape_code = T.unsafe(nil)); end
845
+ def capitalize_word(key); end
846
+ def check_mode_string; end
847
+ def check_multiline_prompt(buffer); end
848
+ def clear_dialog; end
849
+ def clear_each_dialog(dialog); end
850
+ def clear_screen(key); end
851
+ def clear_screen_buffer(prompt, prompt_list, prompt_width); end
852
+ def complete(list, just_show_list = T.unsafe(nil)); end
853
+ def complete_internal_proc(list, is_menu); end
854
+ def copy_for_vi(text); end
855
+ def delete_char(key); end
856
+ def delete_char_or_list(key); end
857
+ def downcase_word(key); end
858
+ def ed_argument_digit(key); end
859
+ def ed_clear_screen(key); end
860
+ def ed_delete_next_char(key, arg: T.unsafe(nil)); end
861
+ def ed_delete_prev_char(key, arg: T.unsafe(nil)); end
862
+ def ed_delete_prev_word(key); end
863
+
864
+ # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
865
+ # In insert mode, insert the input character left of the cursor
866
+ # position. In replace mode, overwrite the character at the
867
+ # cursor and move the cursor to the right by one character
868
+ # position. Accept an argument to do this repeatedly. It is an
869
+ # error if the input character is the NUL character (+Ctrl-@+).
870
+ # Failure to enlarge the edit buffer also results in an error.
871
+ # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
872
+ # the input digit to the argument being read. Otherwise, call
873
+ # +ed-insert+. It is an error if the input character is not a
874
+ # digit or if the existing argument is already greater than a
875
+ # million.
876
+ # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
877
+ def ed_digit(key); end
878
+
879
+ # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
880
+ # In insert mode, insert the input character left of the cursor
881
+ # position. In replace mode, overwrite the character at the
882
+ # cursor and move the cursor to the right by one character
883
+ # position. Accept an argument to do this repeatedly. It is an
884
+ # error if the input character is the NUL character (+Ctrl-@+).
885
+ # Failure to enlarge the edit buffer also results in an error.
886
+ # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
887
+ # the input digit to the argument being read. Otherwise, call
888
+ # +ed-insert+. It is an error if the input character is not a
889
+ # digit or if the existing argument is already greater than a
890
+ # million.
891
+ # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
892
+ def ed_insert(key); end
893
+
894
+ # Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+,
895
+ # +Ctrl-U+) + Kill from the cursor to the end of the line.
896
+ # GNU Readline:: +kill-line+ (+C-k+) Kill the text from point to the end of
897
+ # the line. With a negative numeric argument, kill backward
898
+ # from the cursor to the beginning of the current line.
899
+ def ed_kill_line(key); end
900
+
901
+ def ed_move_to_beg(key); end
902
+ def ed_move_to_end(key); end
903
+ def ed_newline(key); end
904
+ def ed_next_char(key, arg: T.unsafe(nil)); end
905
+ def ed_next_history(key, arg: T.unsafe(nil)); end
906
+ def ed_prev_char(key, arg: T.unsafe(nil)); end
907
+ def ed_prev_history(key, arg: T.unsafe(nil)); end
908
+ def ed_prev_word(key); end
909
+ def ed_quoted_insert(str, arg: T.unsafe(nil)); end
910
+ def ed_search_next_history(key, arg: T.unsafe(nil)); end
911
+ def ed_search_prev_history(key, arg: T.unsafe(nil)); end
912
+ def ed_transpose_chars(key); end
913
+ def ed_transpose_words(key); end
914
+
915
+ # do nothing
916
+ def ed_unassigned(key); end
917
+
918
+ def em_capitol_case(key); end
919
+ def em_delete(key); end
920
+ def em_delete_next_word(key); end
921
+ def em_delete_or_list(key); end
922
+ def em_delete_prev_char(key, arg: T.unsafe(nil)); end
923
+ def em_exchange_mark(key); end
924
+
925
+ # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
926
+ # edit buffer and save it to the cut buffer. +vi-kill-line-prev+
927
+ # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
928
+ # current line, no matter where point is.
929
+ def em_kill_line(key); end
930
+
931
+ def em_kill_region(key); end
932
+ def em_lower_case(key); end
933
+ def em_next_word(key); end
934
+ def em_set_mark(key); end
935
+ def em_upper_case(key); end
936
+ def em_yank(key); end
937
+ def em_yank_pop(key); end
938
+ def end_of_line(key); end
939
+ def exchange_point_and_mark(key); end
940
+ def forward_char(key, arg: T.unsafe(nil)); end
941
+ def forward_search_history(key); end
942
+ def forward_word(key); end
943
+ def generate_searcher; end
944
+ def history_search_backward(key, arg: T.unsafe(nil)); end
945
+ def history_search_forward(key, arg: T.unsafe(nil)); end
946
+
947
+ # @return [Boolean]
948
+ def inclusive?(method_obj); end
949
+
950
+ def incremental_search_history(key); end
951
+ def insert_new_line(cursor_line, next_line); end
952
+ def key_delete(key); end
953
+ def key_newline(key); end
954
+
955
+ # Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+,
956
+ # +Ctrl-U+) + Kill from the cursor to the end of the line.
957
+ # GNU Readline:: +kill-line+ (+C-k+) Kill the text from point to the end of
958
+ # the line. With a negative numeric argument, kill backward
959
+ # from the cursor to the beginning of the current line.
960
+ def kill_line(key); end
961
+
962
+ # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
963
+ # edit buffer and save it to the cut buffer. +vi-kill-line-prev+
964
+ # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
965
+ # current line, no matter where point is.
966
+ def kill_whole_line(key); end
967
+
968
+ def menu(target, list); end
969
+ def modify_lines(before); end
970
+ def move_completed_list(list, direction); end
971
+ def move_cursor_down(val); end
972
+ def move_cursor_up(val); end
973
+ def next_history(key, arg: T.unsafe(nil)); end
974
+ def normal_char(key); end
975
+ def padding_space_with_escape_sequences(str, width); end
976
+ def previous_history(key, arg: T.unsafe(nil)); end
977
+ def process_auto_indent; end
978
+ def process_insert(force: T.unsafe(nil)); end
979
+ def process_key(key, method_symbol); end
980
+ def quoted_insert(str, arg: T.unsafe(nil)); end
981
+ def render_dialog(cursor_column); end
982
+ def render_each_dialog(dialog, cursor_column); end
983
+ def render_partial(prompt, prompt_width, line_to_render, this_started_from, with_control: T.unsafe(nil)); end
984
+ def render_whole_lines(lines, prompt, prompt_width); end
985
+ def rerender_added_newline(prompt, prompt_width); end
986
+ def rerender_all_lines; end
987
+ def rerender_changed_current_line; end
988
+ def reset_dialog(dialog, old_dialog); end
989
+ def reverse_search_history(key); end
990
+ def run_for_operators(key, method_symbol, &block); end
991
+ def scroll_down(val); end
992
+ def search_next_char(key, arg, need_prev_char: T.unsafe(nil), inclusive: T.unsafe(nil)); end
993
+ def search_prev_char(key, arg, need_next_char = T.unsafe(nil)); end
994
+
995
+ # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
996
+ # In insert mode, insert the input character left of the cursor
997
+ # position. In replace mode, overwrite the character at the
998
+ # cursor and move the cursor to the right by one character
999
+ # position. Accept an argument to do this repeatedly. It is an
1000
+ # error if the input character is the NUL character (+Ctrl-@+).
1001
+ # Failure to enlarge the edit buffer also results in an error.
1002
+ # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
1003
+ # the input digit to the argument being read. Otherwise, call
1004
+ # +ed-insert+. It is an error if the input character is not a
1005
+ # digit or if the existing argument is already greater than a
1006
+ # million.
1007
+ # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
1008
+ def self_insert(key); end
1009
+
1010
+ def set_mark(key); end
1011
+ def show_menu; end
1012
+ def split_by_width(str, max_width); end
1013
+ def transpose_chars(key); end
1014
+ def transpose_words(key); end
1015
+
1016
+ # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
1017
+ # beginning of the edit buffer to the cursor and save it to the
1018
+ # cut buffer.
1019
+ # GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor
1020
+ # to the beginning of the current line.
1021
+ def unix_line_discard(key); end
1022
+
1023
+ def unix_word_rubout(key); end
1024
+ def upcase_word(key); end
1025
+ def vi_add(key); end
1026
+ def vi_add_at_eol(key); end
1027
+ def vi_change_meta(key, arg: T.unsafe(nil)); end
1028
+ def vi_command_mode(key); end
1029
+ def vi_delete_meta(key, arg: T.unsafe(nil)); end
1030
+ def vi_delete_prev_char(key); end
1031
+ def vi_end_big_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1032
+ def vi_end_of_transmission(key); end
1033
+ def vi_end_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1034
+ def vi_eof_maybe(key); end
1035
+ def vi_first_print(key); end
1036
+ def vi_histedit(key); end
1037
+ def vi_insert(key); end
1038
+ def vi_insert_at_bol(key); end
1039
+ def vi_join_lines(key, arg: T.unsafe(nil)); end
1040
+
1041
+ # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
1042
+ # beginning of the edit buffer to the cursor and save it to the
1043
+ # cut buffer.
1044
+ # GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor
1045
+ # to the beginning of the current line.
1046
+ def vi_kill_line_prev(key); end
1047
+
1048
+ def vi_list_or_eof(key); end
1049
+ def vi_movement_mode(key); end
1050
+ def vi_next_big_word(key, arg: T.unsafe(nil)); end
1051
+ def vi_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1052
+ def vi_next_word(key, arg: T.unsafe(nil)); end
1053
+ def vi_paste_next(key, arg: T.unsafe(nil)); end
1054
+ def vi_paste_prev(key, arg: T.unsafe(nil)); end
1055
+ def vi_prev_big_word(key, arg: T.unsafe(nil)); end
1056
+ def vi_prev_char(key, arg: T.unsafe(nil)); end
1057
+ def vi_prev_word(key, arg: T.unsafe(nil)); end
1058
+ def vi_replace_char(key, arg: T.unsafe(nil)); end
1059
+ def vi_search_next(key); end
1060
+ def vi_search_prev(key); end
1061
+ def vi_to_column(key, arg: T.unsafe(nil)); end
1062
+ def vi_to_history_line(key); end
1063
+ def vi_to_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1064
+ def vi_to_prev_char(key, arg: T.unsafe(nil)); end
1065
+ def vi_yank(key, arg: T.unsafe(nil)); end
1066
+ def vi_zero(key); end
1067
+ def yank(key); end
1068
+ def yank_pop(key); end
1069
+ end
1070
+
1071
+ Reline::LineEditor::CompletionJourneyData = Struct
1072
+ module Reline::LineEditor::CompletionState; end
1073
+ Reline::LineEditor::CompletionState::COMPLETION = T.let(T.unsafe(nil), Symbol)
1074
+ Reline::LineEditor::CompletionState::JOURNEY = T.let(T.unsafe(nil), Symbol)
1075
+ Reline::LineEditor::CompletionState::MENU = T.let(T.unsafe(nil), Symbol)
1076
+ Reline::LineEditor::CompletionState::MENU_WITH_PERFECT_MATCH = T.let(T.unsafe(nil), Symbol)
1077
+ Reline::LineEditor::CompletionState::NORMAL = T.let(T.unsafe(nil), Symbol)
1078
+ Reline::LineEditor::CompletionState::PERFECT_MATCH = T.let(T.unsafe(nil), Symbol)
1079
+ Reline::LineEditor::DIALOG_DEFAULT_HEIGHT = T.let(T.unsafe(nil), Integer)
1080
+
1081
+ class Reline::LineEditor::Dialog
1082
+ # @return [Dialog] a new instance of Dialog
1083
+ def initialize(name, config, proc_scope); end
1084
+
1085
+ def call(key); end
1086
+
1087
+ # Returns the value of attribute column.
1088
+ def column; end
1089
+
1090
+ # Sets the attribute column
1091
+ #
1092
+ # @param value the value to set the attribute column to.
1093
+ def column=(_arg0); end
1094
+
1095
+ # Returns the value of attribute contents.
1096
+ def contents; end
1097
+
1098
+ def contents=(contents); end
1099
+
1100
+ # Returns the value of attribute lines_backup.
1101
+ def lines_backup; end
1102
+
1103
+ # Sets the attribute lines_backup
1104
+ #
1105
+ # @param value the value to set the attribute lines_backup to.
1106
+ def lines_backup=(_arg0); end
1107
+
1108
+ # Returns the value of attribute name.
1109
+ def name; end
1110
+
1111
+ # Returns the value of attribute pointer.
1112
+ def pointer; end
1113
+
1114
+ # Sets the attribute pointer
1115
+ #
1116
+ # @param value the value to set the attribute pointer to.
1117
+ def pointer=(_arg0); end
1118
+
1119
+ # Returns the value of attribute scroll_top.
1120
+ def scroll_top; end
1121
+
1122
+ # Sets the attribute scroll_top
1123
+ #
1124
+ # @param value the value to set the attribute scroll_top to.
1125
+ def scroll_top=(_arg0); end
1126
+
1127
+ # Returns the value of attribute scrollbar_pos.
1128
+ def scrollbar_pos; end
1129
+
1130
+ # Sets the attribute scrollbar_pos
1131
+ #
1132
+ # @param value the value to set the attribute scrollbar_pos to.
1133
+ def scrollbar_pos=(_arg0); end
1134
+
1135
+ def set_cursor_pos(col, row); end
1136
+
1137
+ # Returns the value of attribute trap_key.
1138
+ def trap_key; end
1139
+
1140
+ # Sets the attribute trap_key
1141
+ #
1142
+ # @param value the value to set the attribute trap_key to.
1143
+ def trap_key=(_arg0); end
1144
+
1145
+ # Returns the value of attribute vertical_offset.
1146
+ def vertical_offset; end
1147
+
1148
+ # Sets the attribute vertical_offset
1149
+ #
1150
+ # @param value the value to set the attribute vertical_offset to.
1151
+ def vertical_offset=(_arg0); end
1152
+
1153
+ # Returns the value of attribute width.
1154
+ def width; end
1155
+
1156
+ def width=(v); end
1157
+ end
1158
+
1159
+ class Reline::LineEditor::DialogProcScope
1160
+ # @return [DialogProcScope] a new instance of DialogProcScope
1161
+ def initialize(line_editor, config, proc_to_exec, context); end
1162
+
1163
+ def call; end
1164
+ def call_completion_proc_with_checking_args(pre, target, post); end
1165
+ def completion_journey_data; end
1166
+ def config; end
1167
+ def context; end
1168
+ def cursor_pos; end
1169
+ def dialog; end
1170
+ def just_cursor_moving; end
1171
+ def key; end
1172
+ def retrieve_completion_block(set_completion_quote_character = T.unsafe(nil)); end
1173
+ def screen_width; end
1174
+ def set_cursor_pos(col, row); end
1175
+ def set_dialog(dialog); end
1176
+ def set_key(key); end
1177
+ end
1178
+
1179
+ Reline::LineEditor::MenuInfo = Struct
1180
+ Reline::LineEditor::PROMPT_LIST_CACHE_TIMEOUT = T.let(T.unsafe(nil), Float)
1181
+ Reline::LineEditor::VI_MOTIONS = T.let(T.unsafe(nil), Array)
1182
+
1183
+ module Reline::Terminfo
1184
+ extend ::Fiddle
1185
+ extend ::Fiddle::CParser
1186
+ extend ::Fiddle::Importer
1187
+
1188
+ class << self
1189
+ def curses_dl; end
1190
+ def curses_dl_files; end
1191
+
1192
+ # @return [Boolean]
1193
+ def enabled?; end
1194
+
1195
+ def setupterm(term, fildes); end
1196
+ def tigetflag(capname); end
1197
+ def tigetnum(capname); end
1198
+ def tigetstr(capname); end
1199
+ def tiparm(str, *args); end
1200
+ end
1201
+ end
1202
+
1203
+ class Reline::Terminfo::StringWithTiparm < ::String
1204
+ # for method chain
1205
+ def tiparm(*args); end
1206
+ end
1207
+
1208
+ class Reline::Terminfo::TerminfoError < ::StandardError; end
1209
+
1210
+ class Reline::Unicode
1211
+ class << self
1212
+ def calculate_width(str, allow_escape_code = T.unsafe(nil)); end
1213
+ def ed_transpose_words(line, byte_pointer); end
1214
+ def em_backward_word(line, byte_pointer); end
1215
+ def em_big_backward_word(line, byte_pointer); end
1216
+ def em_forward_word(line, byte_pointer); end
1217
+ def em_forward_word_with_capitalization(line, byte_pointer); end
1218
+ def escape_for_print(str); end
1219
+ def get_mbchar_byte_size_by_first_char(c); end
1220
+ def get_mbchar_width(mbchar); end
1221
+ def get_next_mbchar_size(line, byte_pointer); end
1222
+ def get_prev_mbchar_size(line, byte_pointer); end
1223
+ def split_by_width(str, max_width, encoding = T.unsafe(nil)); end
1224
+
1225
+ # Take a chunk of a String cut by width with escape sequences.
1226
+ def take_range(str, start_col, max_width, encoding = T.unsafe(nil)); end
1227
+
1228
+ def vi_backward_word(line, byte_pointer); end
1229
+ def vi_big_backward_word(line, byte_pointer); end
1230
+ def vi_big_forward_end_word(line, byte_pointer); end
1231
+ def vi_big_forward_word(line, byte_pointer); end
1232
+ def vi_first_print(line); end
1233
+ def vi_forward_end_word(line, byte_pointer); end
1234
+ def vi_forward_word(line, byte_pointer, drop_terminate_spaces = T.unsafe(nil)); end
1235
+ end
1236
+ end
1237
+
1238
+ Reline::Unicode::CSI_REGEXP = T.let(T.unsafe(nil), Regexp)
1239
+ Reline::Unicode::CSI_REGEXP_INDEX = T.let(T.unsafe(nil), Integer)
1240
+ class Reline::Unicode::EastAsianWidth; end
1241
+
1242
+ # Ambiguous
1243
+ Reline::Unicode::EastAsianWidth::TYPE_A = T.let(T.unsafe(nil), Regexp)
1244
+
1245
+ # Fullwidth
1246
+ Reline::Unicode::EastAsianWidth::TYPE_F = T.let(T.unsafe(nil), Regexp)
1247
+
1248
+ # Halfwidth
1249
+ Reline::Unicode::EastAsianWidth::TYPE_H = T.let(T.unsafe(nil), Regexp)
1250
+
1251
+ # Neutral
1252
+ Reline::Unicode::EastAsianWidth::TYPE_N = T.let(T.unsafe(nil), Regexp)
1253
+
1254
+ # Narrow
1255
+ Reline::Unicode::EastAsianWidth::TYPE_NA = T.let(T.unsafe(nil), Regexp)
1256
+
1257
+ # Wide
1258
+ Reline::Unicode::EastAsianWidth::TYPE_W = T.let(T.unsafe(nil), Regexp)
1259
+
1260
+ # C-? C-8
1261
+ Reline::Unicode::EscapedChars = T.let(T.unsafe(nil), Array)
1262
+
1263
+ Reline::Unicode::EscapedPairs = T.let(T.unsafe(nil), Hash)
1264
+ Reline::Unicode::GRAPHEME_CLUSTER_INDEX = T.let(T.unsafe(nil), Integer)
1265
+ Reline::Unicode::HalfwidthDakutenHandakuten = T.let(T.unsafe(nil), Regexp)
1266
+ Reline::Unicode::MBCharWidthRE = T.let(T.unsafe(nil), Regexp)
1267
+ Reline::Unicode::NON_PRINTING_END = T.let(T.unsafe(nil), String)
1268
+ Reline::Unicode::NON_PRINTING_END_INDEX = T.let(T.unsafe(nil), Integer)
1269
+ Reline::Unicode::NON_PRINTING_START = T.let(T.unsafe(nil), String)
1270
+ Reline::Unicode::NON_PRINTING_START_INDEX = T.let(T.unsafe(nil), Integer)
1271
+ Reline::Unicode::OSC_REGEXP = T.let(T.unsafe(nil), Regexp)
1272
+ Reline::Unicode::OSC_REGEXP_INDEX = T.let(T.unsafe(nil), Integer)
1273
+ Reline::Unicode::WIDTH_SCANNER = T.let(T.unsafe(nil), Regexp)
1274
+ Reline::VERSION = T.let(T.unsafe(nil), String)