summaryrefslogtreecommitdiff
path: root/lib/reline
AgeCommit message (Collapse)Author
2020-01-29[ruby/reline] Support GNOME style Home/End key sequences [Bug #16510]aycabta
https://github.com/ruby/reline/commit/788f0df845
2020-01-26Always use UTF-8 for Reline::GeneralIO on Windowsaycabta
2020-01-21Reline: Use a more robust detection of MinTTYLars Kanis
The previous detection per get_screen_size fails when stdout is passed to a pipe. That is the case when running ruby tests in parallel ("-j" switch). In this case Reline believes that it's running on MinTTY and the tests are running with ANSI IOGate instead of the Windows adapter on MINGW. So parallel test results were different to that of a single process. This commit fixes these differencies. The code is taken from git sources and translated to ruby. NtQueryObject() is replaced by GetFileInformationByHandleEx(), because NtQueryObject() is undocumented and is more difficult to use: https://github.com/git-for-windows/git/blob/c5a03b1e29c69f3f06c8fabd92493edb73469176/compat/winansi.c#L558 Notes: Merged: https://github.com/ruby/ruby/pull/2848
2020-01-21[ruby/reline] Implement vi_change_metaaycabta
https://github.com/ruby/reline/commit/8538e0e10f
2020-01-20[ruby/reline] Implement vi_prev_char and vi_to_prev_charaycabta
https://github.com/ruby/reline/commit/0ad3ee63fa
2020-01-20[ruby/reline] Implement vi_to_next_charaycabta
https://github.com/ruby/reline/commit/066ecb0a21
2020-01-17Implement vi_insert_at_bol and vi_add_at_eolaycabta
2020-01-14Introduce an abstracted structure about the encoding of Relineaycabta
The command prompt on Windows always uses Unicode to take input and print output but most Reline implementation depends on Encoding.default_external. This commit introduces an abstracted structure about the encoding of Reline.
2020-01-06Support history-size in .inputrc correctlyaycabta
2020-01-06Complete indented and quoted string correctlyaycabta
def foo ''.upca[TAB] This will be completed to be: def foo ''.upcase The indent was gone. This commit fixes the bug.
2020-01-05Rescue EOFErroraycabta
If C-d is pressed before IRB is ready, IRB crashes because EOFError occurs.
2020-01-05[ruby/reline] Sort completion listKOBAYASHI Shuji
#### Legacy mode: ```console $ irb --legacy irb(main):001:0> l[TAB][TAB] lambda load local_variables loop ``` #### Before this patch: ```console $ irb irb(main):001:0> l[TAB][TAB] local_variables loop lambda load ``` #### After this patch: ```console $ irb irb(main):001:0> l[TAB][TAB] lambda load local_variables loop ``` https://github.com/ruby/reline/commit/6074069c7d
2019-12-31[ruby/reline] Degenerate the terminal size to [$LINES, $COLUMNS] if it is ↵Yusuke Endoh
unknown This is a workaround for https://github.com/ruby/irb/issues/50 https://github.com/ruby/reline/commit/5725677d1a
2019-12-27Drop an invalid char as UTF-8aycabta
2019-12-25[ruby/reline] Version 0.1.2aycabta
https://github.com/ruby/reline/commit/b41024e317
2019-12-25Save last breaking point to completeaycabta
2019-12-25[ruby/reline] Version 0.1.1aycabta
https://github.com/ruby/reline/commit/923f97d068
2019-12-25The behavior of vi_end_of_transmission should be the same of vi_list_or_eofaycabta
2019-12-25^D on non-empty line in vi mode behaves like Enteraycabta
2019-12-24Remove unused variableaycabta
2019-12-24The delete-char-or-list shows completed list when called at end of lineaycabta
It doesn't behave the same as the delete-char.
2019-12-24[ruby/reline] Version 0.1.0aycabta
https://github.com/ruby/reline/commit/55d4dfec1e
2019-12-23[ruby/reline] Use IO#raw to read one byteNobuyoshi Nakada
https://github.com/ruby/reline/commit/be17740e82
2019-12-22Support multibyte inputNobuyoshi Nakada
2019-12-22[ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_wordYusuke Endoh
https://github.com/ruby/reline/commit/e98ad3b486
2019-12-22Remove TODO commentaycabta
2019-12-22[ruby/reline] Preserve the input buffer across cursor_posYusuke Endoh
The old version of cursor_pos discards the input buffer, which made IRB ignore the input immediately after IRB is invoked. This change keeps the input before cursor_pos by using ungetc. https://github.com/ruby/reline/commit/4a8cca331f
2019-12-22[ruby/reline] Consider Reline::ANSI.input at prepNobuyoshi Nakada
https://github.com/ruby/reline/commit/b111cde3c3
2019-12-20Fixed misspellingsNobuyoshi Nakada
Fixed misspellings reported at [Bug #16437], for default gems.
2019-12-17Remove an unnecessary variableaycabta
2019-12-17Remove unnecessary branchesaycabta
2019-12-17[ruby/reline] Implement completion_append_characterThomas Leitner
There is already the possibility to set Reline.completion_append_character. However, it is not used by the line editor. https://github.com/ruby/reline/commit/ab798931b9
2019-12-17[ruby/reline] Disable any implementation-defined special control charactersNobuyoshi Nakada
Including dsusp, lnext, and so on. https://github.com/ruby/reline/commit/a44abe586b
2019-12-17Support change search directionaycabta
2019-12-17Support forward-search-history by C-saycabta
2019-12-13Show a menu before a documentaycabta
IRB should show a menu first if a completed list has plural items. But just shows document without menu if a completed list with plural items includes a perfect matched item. The behavior is a bug. This commit fixes it.
2019-12-12Suppress to crash IRB if completed list has nilaycabta
2019-12-11Add a message for CompatibilityErroraycabta
2019-12-11Support Readline.completion_quote_character by Relineaycabta
2019-12-10Change encoding of completion stringsaycabta
2019-12-10Support completion with case-insensitive fashionaycabta
Reline performs completion in a case-insensitive fashon if Readline.completion_case_fold or completion-ignore-case of .inputrc are set "on".
2019-12-09Fix encoding compatibility checking of completion correctlyaycabta
2019-12-07[ruby/reline] Support Ruby 2.5 or later for String#grapheme_clustersaycabta
https://github.com/ruby/reline/commit/33e8c8f15b
2019-12-05Support disable-completionaycabta
2019-12-05Fix variable catchaycabta
2019-12-03Fix auto-indent behavior correctlyaycabta
2019-12-03Support incremental search by last determined wordaycabta
In the incremental search by C-r, search word is saved when it's determined. In the next incremental search by C-r, if a user presses C-r again with the empty search word, the determined previous search word is used to search.
2019-12-03The C-r in vi command mode is also incremental searchaycabta
2019-12-02Support incremental search again by C-r in incremental searchaycabta
2019-12-02Process Backspace key in incremental search correctlyaycabta