summaryrefslogtreecommitdiff
path: root/lib/reline.rb
AgeCommit message (Collapse)Author
2021-10-02[ruby/reline] Refactoring Reline::Key.match? and add test.manga_osyo
https://github.com/ruby/reline/commit/90e8999ae4
2021-09-10[ruby/reline] Move #pointer from DialogRenderInfo to Dialogaycabta
https://github.com/ruby/reline/commit/92dbac0bff
2021-09-07[ruby/reline] Use Symbol for method namesaycabta
https://github.com/ruby/reline/commit/479eee5393
2021-09-06[ruby/reline] Limit number of chars only when completion source text ↵aycabta
(pointer == -1) https://github.com/ruby/reline/commit/1d7b603811
2021-09-06[ruby/reline] Cut out read_2nd_character_of_key_sequenceaycabta
https://github.com/ruby/reline/commit/92518d1dee
2021-09-06[ruby/reline] Use combined_key if it exists when comparing Reline::Key and ↵aycabta
Integer https://github.com/ruby/reline/commit/8fca5f6f9c
2021-09-06[ruby/reline] Allow Reline::KeyStroke to compare raw and meta-key processed ↵aycabta
key sequences https://github.com/ruby/reline/commit/731103f9c9
2021-09-06[ruby/reline] Support for key bindings result Symbol in Reline::Keyaycabta
https://github.com/ruby/reline/commit/cf78a38064
2021-09-06[ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?aycabta
https://github.com/ruby/reline/commit/1fc3276c01
2021-09-06[ruby/reline] Reline::Key supports the comparison with Integeraycabta
https://github.com/ruby/reline/commit/ebc3e0f673
2021-09-04[ruby/reline] Implement scrollbaraycabta
https://github.com/ruby/reline/commit/4c7fc42151
2021-09-04[ruby/reline] Show even if it's only one candidate until a perfect matchaycabta
https://github.com/ruby/reline/commit/fe7e34e79f
2021-09-03[ruby/reline] Add Reline::Key#match?aycabta
https://github.com/ruby/reline/commit/8f6aa3af2e
2021-09-03[ruby/reline] Autocompletion ignites when target char length is 3 or longeraycabta
https://github.com/ruby/reline/commit/261830fda3
2021-09-02[ruby/reline] Add a spaceaycabta
https://github.com/ruby/reline/commit/3d70e07331
2021-08-31[ruby/reline] Fix Reline::Unicode.take_range as it was not fully functionalaycabta
https://github.com/ruby/reline/commit/5da6a8d851
2021-08-31[ruby/reline] Pass "dialog" to context to get "dialog.scroll_top" lateraycabta
https://github.com/ruby/reline/commit/d81f29a134
2021-08-31[ruby/reline] Autocompletion dialog height 15aycabta
https://github.com/ruby/reline/commit/7e18716754
2021-08-31[ruby/reline] Scroll autocompletion pointer in dialog correctlyaycabta
https://github.com/ruby/reline/commit/dc79ed2dd8
2021-08-31[ruby/reline] Use DialogRenderInfo structaycabta
https://github.com/ruby/reline/commit/ac6f652a39
2021-08-30[ruby/reline] Fix Reline.autocompletion=() interfaceaycabta
https://github.com/ruby/reline/commit/71c2eb143d
2021-08-30[ruby/reline] Add Reline.autocompletion=() interfaceaycabta
https://github.com/ruby/reline/commit/a2e69f6277
2021-08-30[ruby/reline] Add autocompletion on emacs mode by Tab / S-Tabaycabta
https://github.com/ruby/reline/commit/22d0b4e5d8
2021-08-29[ruby/reline] Make autocomplete dialog is registered firstaycabta
https://github.com/ruby/reline/commit/d027dbe118
2021-08-29[ruby/reline] Delete show doc dialog to move it to IRBaycabta
https://github.com/ruby/reline/commit/640102fe27
2021-08-29[ruby/reline] Remove an unnecessary variableaycabta
https://github.com/ruby/reline/commit/3b8cc5ce0a
2021-08-29[ruby/reline] Remove dialog_proc_list accessor of Relineaycabta
https://github.com/ruby/reline/commit/ac8fa84f4d
2021-08-29[ruby/reline] Move constants of dialogs to under Relineaycabta
https://github.com/ruby/reline/commit/9100ea2934
2021-08-29[ruby/reline] Use default dialog context to communicate othersaycabta
https://github.com/ruby/reline/commit/5e67e6ffe0
2021-08-29[ruby/reline] Use colored doc output with ANSI escape sequenceaycabta
https://github.com/ruby/reline/commit/7d1c75b43f
2021-08-29[ruby/reline] Support custom bg coloraycabta
https://github.com/ruby/reline/commit/cd0cbf53d5
2021-08-29[ruby/reline] Show method or class doc correctlyaycabta
https://github.com/ruby/reline/commit/a505294f12
2021-08-29[ruby/reline] Implement doc display dialog in conjunction with autocompleteaycabta
https://github.com/ruby/reline/commit/e97bbc4ccf
2021-08-29[ruby/reline] Add the ability to handle context between dialogsaycabta
https://github.com/ruby/reline/commit/063d9c70d9
2021-08-29[ruby/reline] Support for multiple dialog renderingaycabta
https://github.com/ruby/reline/commit/f589fab718
2021-08-29[ruby/reline] Cut out the autocomplete callbackaycabta
https://github.com/ruby/reline/commit/46aa2694da
2021-08-29[ruby/reline] Implement dynamic selection of candidatesaycabta
https://github.com/ruby/reline/commit/e46437df00
2021-08-29[ruby/reline] Remove unnecessary conditionaycabta
https://github.com/ruby/reline/commit/07e911ec8e
2021-08-29[ruby/reline] Fix typoaycabta
https://github.com/ruby/reline/commit/6370353c71
2021-08-29[ruby/reline] Show autocomplete correctly when starts from prev lineaycabta
https://github.com/ruby/reline/commit/f31a76ff31
2021-08-29[ruby/reline] Display autocomplete below original line if end point was wrappedaycabta
https://github.com/ruby/reline/commit/49f3392d59
2021-08-29[ruby/reline] Implement dialog with autocomplete callbackaycabta
https://github.com/ruby/reline/commit/1401d6165e
2021-07-30[ruby/reline] Add require 'reline/terminfo' to use Reline::Terminfo.enabled?aycabta
https://github.com/ruby/reline/commit/7ef9805b35
2021-06-21Rescue conversion error of inputrcaycabta
2021-06-21[ruby/reline] Fix explamation of #read_ioaycabta
https://github.com/ruby/reline/commit/301ed11bec
2021-06-21[ruby/reline] Fix Reline::Unicode.calculate_width when input is not a TTYJeremy Evans
This fixes an error when output is redirected: ``` $ run_ruby -rreline -e '$stderr.puts Reline::Unicode.calculate_width("\u221a").inspect' </dev/null >/dev/null /home/jeremy/tmp/ruby/lib/reline/ansi.rb:189:in `raw': Operation not supported by device (Errno::ENODEV) ``` The @@encoding -> defined?(@@encoding) changes is necessary because without that part of the commit, the following error would be raised by the above command: ``` /home/jeremy/tmp/reline/lib/reline/general_io.rb:10:in `encoding': uninitialized class variable @@encoding in Reline::GeneralIO (NameError) ``` Problem reported and initial patch for Windows provided by Richard Sharman. I tested this only on OpenBSD, but hopefully it works for other operating systems. Fixes [Bug #17493] https://github.com/ruby/reline/commit/c001971bb3
2021-04-08[ruby/reline] Separate keystrokes each editing modeaycabta
https://github.com/ruby/reline/commit/ee23e6f3f8
2021-03-24[ruby/reline] Add Reline.ungetc to control bufferaycabta
https://github.com/ruby/reline/commit/43ac03c624
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
2020-12-22[ruby/reline] [ruby/reline] Remove unused `attr_writer`ima1zumi
https://github.com/ruby/reline/commit/ecdc1b7116 https://github.com/ruby/reline/commit/a7922da16b