summaryrefslogtreecommitdiff
path: root/lib/reline/line_editor.rb
AgeCommit message (Collapse)Author
2021-03-24[ruby/reline] Suppress crashing when completer_{quote,word_break}_characters ↵aycabta
is empty https://github.com/ruby/reline/commit/c6f1164942
2021-03-24[ruby/reline] Support preposing and postposing for Reline.completion_procaycabta
https://github.com/ruby/reline/commit/1f469de90c
2021-03-24[ruby/reline] Reline.delete_text removes the current line in multilineaycabta
https://github.com/ruby/reline/commit/da90c094a1
2021-02-21[ruby/reline] Use UTF-8 only for width calc, rest uses original encodingaycabta
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and DEC graphics by reading source code, so can't test this patch by yamatanoorogi gem through vterm gem for now. This fixes ruby/irb#190. https://github.com/ruby/reline/commit/44596c0cc7
2021-02-21[ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof ↵Yoshinao Muramatu
processing https://github.com/ruby/reline/commit/3535676689
2021-02-21[ruby/reline] We still need support new and legacy behavior.Yoshinao Muramatu
Revert "Support for change in Windows-specific behavior at eol" This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82. https://github.com/ruby/reline/commit/646587fc2c
2021-02-21[ruby/reline] Avoid tripping over nil promptEamonn Webster
https://github.com/ruby/reline/commit/d4d9d3e3d4
2021-02-07[ruby/reline] Terminate correctly in the middle of lines higher than the screenaycabta
https://github.com/ruby/reline/commit/e1d9240ada
2021-02-07[ruby/reline] Autowrap correctly when inserting chars in the middle of a lineaycabta
https://github.com/ruby/reline/commit/ebaf37255f
2021-02-07[ruby/reline] The vi_histedit supports multilineaycabta
This closes ruby/reline#253. https://github.com/ruby/reline/commit/f131f86d71
2021-02-07[ruby/reline] Move cursor just after the last line when finishedaycabta
https://github.com/ruby/reline/commit/ba06e4c480
2021-02-07[ruby/reline] Update cursor info by inserting newline even if not in pastingaycabta
https://github.com/ruby/reline/commit/92d314f514
2021-02-07[ruby/reline] Handle past logs correctly when the code is higher than the screenaycabta
https://github.com/ruby/reline/commit/f197139b4a
2021-02-07[ruby/reline] Show all lines higher than the screen when finishedaycabta
On Unix-like OSes, logs prior to the screen are not editable. When the code is higher than the screen, the code is only shown on the screen until input is finished, but when it is finished, all lines are outputted. https://github.com/ruby/reline/commit/8cd9132a39
2021-02-07[ruby/reline] Scroll down when ^C is pressedaycabta
https://github.com/ruby/reline/commit/6877a7e3f5
2021-02-07[ruby/reline] Remove an unused variableaycabta
https://github.com/ruby/reline/commit/123ea51166
2021-02-07[ruby/reline] Initialize uninitialized variables in testsaycabta
https://github.com/ruby/reline/commit/25af4bb64b
2021-02-07[ruby/reline] Cache pasting state in processing a keyaycabta
Because it's too slow. The rendering time in IRB has been reduced as follows: start = Time.now def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else @line_no += l.count("\n") next if l == "\n" @line.concat l if @code_block_open or @ltype or @continue or @indent > 0 next end end if @line != "\n" @line.force_encoding(@io.encoding) yield @line, @exp_line_no end break if @io.eof? @line = '' @exp_line_no = @line_no @indent = 0 rescue TerminateLineInput initialize_input prompt end end end end puts "Duration: #{Time.now - start} seconds" 0.22sec -> 0.14sec https://github.com/ruby/reline/commit/b8b3dd52c0
2021-01-18[ruby/reline] Support for change in Windows-specific behavior at eolaycabta
The behavior of automatically moving the cursor to the next line when displaying a char at the eol on Windows suddenly disappeared. https://github.com/ruby/reline/commit/cad4de6ee8
2021-01-18[ruby/reline] Initialize a variable just in caseaycabta
https://github.com/ruby/reline/commit/29b10f6e98
2021-01-13[ruby/reline] Move the cursor correctly when deleting at eolaycabta
This fixes ruby/reline#246. https://github.com/ruby/reline/commit/07a73ba601
2021-01-13[ruby/reline] Handle ed_search_{prev,next}_history in multiline correctlyaycabta
The current line was being handled incorrectly when displaying the hit history, so it has been fixed to be correct. https://github.com/ruby/reline/commit/a3df4343b3
2021-01-08[ruby/reline] Suppress auto indent for adding newlines in pastingaycabta
Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/074bb017a7
2021-01-08[ruby/reline] Suppress crashing when dynamic_prompt_proc returns a broken ↵aycabta
prompt list Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/558f7be168
2021-01-08[ruby/reline] Suppress crashing when auto_indent_proc returns broken indent infoaycabta
Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/7c24276275
2021-01-08[ruby/reline] Correct var names in Reline were different from vi-*-mode-stringaycabta
https://github.com/ruby/reline/commit/8255fc93b9
2021-01-08[ruby/reline] Update cursor correctly when just cursor movingaycabta
This fixes ruby/reline#236 and ruby/reline#239. https://github.com/ruby/reline/commit/3e3c89d00b
2020-12-24[ruby/reline] Doesn't contain terminate spaces by cwaycabta
This closes ruby/reline#233. https://github.com/ruby/reline/commit/4c3f2e2eae
2020-12-24[ruby/reline] Use #bytesize for vi_replace_charaycabta
This closes ruby/reline#228. https://github.com/ruby/reline/commit/8205fa0b00
2020-12-24[ruby/reline] Suppress crashing when boken prompt_list is givenaycabta
https://github.com/ruby/reline/commit/922d087e7a
2020-12-24[ruby/reline] Discard prompt cache by changing mode iconaycabta
https://github.com/ruby/reline/commit/bfeda8a79b
2020-12-22[ruby/reline] Support isearch-terminatorsaycabta
https://github.com/ruby/reline/commit/a7922da16b
2020-12-22[ruby/reline] Render refreshed prompt just after i-search finishedaycabta
https://github.com/ruby/reline/commit/0d3188fe34
2020-12-19[ruby/reline] Use cached prompt list when just moved the cursoraycabta
https://github.com/ruby/reline/commit/cfe619460b
2020-12-19[ruby/reline] Yank by em-kill-region correctlyaycabta
This closes ruby/reline#106. https://github.com/ruby/reline/commit/2549a52e15
2020-12-19[ruby/reline] Bind yank-pop correctlyaycabta
https://github.com/ruby/reline/commit/3c74beac65
2020-12-17[ruby/reline] Support longer than screen heightaycabta
https://github.com/ruby/reline/commit/e83a3de9ed
2020-12-17Fixing glitchy kill ring behavior in irbYale Kozinski
See https://github.com/ruby/irb/issues/85 for details Notes: Merged: https://github.com/ruby/ruby/pull/3806
2020-12-11[ruby/reline] Fix breaking to input Emoji with ZWJ.ima1zumi
https://github.com/ruby/reline/commit/f21dfdbb11
2020-12-08[ruby/reline] Editing to initial content is not just cursor movingaycabta
https://github.com/ruby/reline/commit/0a4f175b0a
2020-12-05[ruby/reline] Process insertion buffer forciblyaycabta
https://github.com/ruby/reline/commit/89d49ec9e0
2020-12-05[ruby/reline] Forced newline insertion is not just cursor movingaycabta
https://github.com/ruby/reline/commit/0e30a49d03
2020-12-05[ruby/reline] Drop prompt list cache when num of lines is changedaycabta
https://github.com/ruby/reline/commit/1959e22043
2020-12-05[ruby/reline] Cache dynamic prompt for 0.5secaycabta
https://github.com/ruby/reline/commit/06b89d0e61
2020-12-05[ruby/reline] Stop rerendering if the cursor is only movedaycabta
https://github.com/ruby/reline/commit/30e8eaf855
2020-12-05[ruby/reline] Split #rerender method that is too hugeaycabta
https://github.com/ruby/reline/commit/d0fbc89253
2020-12-05[ruby/reline] Stop rerendering whole screen when adding newline at end of bufferaycabta
The rendering time in IRB has been reduced as follows: start = Time.now def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else @line_no += l.count("\n") next if l == "\n" @line.concat l if @code_block_open or @ltype or @continue or @indent > 0 next end end if @line != "\n" @line.force_encoding(@io.encoding) yield @line, @exp_line_no end break if @io.eof? @line = '' @exp_line_no = @line_no @indent = 0 rescue TerminateLineInput initialize_input prompt end end end end puts "Duration: #{Time.now - start} seconds" 0.33sec -> 0.22sec https://github.com/ruby/reline/commit/496c6a1892
2020-12-05[ruby/reline] Key strokes like 2dl should behave d2laycabta
Key strokes, vi arg, operator, and motion should be treated as operator, vi arg, and motion. https://github.com/ruby/reline/commit/d1a7e74aa4
2020-12-05[ruby/reline] Add alias vi-movement-mode to vi-command-mode for compatibilityaycabta
https://github.com/ruby/reline/commit/a79c297567
2020-12-05[ruby/reline] Move alias_method to right after original definitionaycabta
https://github.com/ruby/reline/commit/b7c8b93fa9