aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/reline] Remove unnecessary TODO commnetaycabta2020-05-171-1/+1
| | | | https://github.com/ruby/reline/commit/23c67fb7b3
* [ruby/reline] If history-size isn't numeric, it should be 500aycabta2020-05-171-1/+5
| | | | | | | | | https://tiswww.case.edu/php/chet/readline/readline.html#IDX25 > If an attempt is made to set history-size to a non-numeric value, the maximum > number of history entries will be set to 500. https://github.com/ruby/reline/commit/acf0437280
* Some I/O in test doesn't have "position"aycabta2020-05-121-3/+10
| | | | | Just returns column 1 for ambiguous width because this I/O is not tty and can't seek.
* [ruby/reline] Add URL reference of history-sizeaycabta2020-04-291-0/+1
| | | | https://github.com/ruby/reline/commit/13420197b8
* [ruby/reline] Version 0.1.4aycabta2020-04-291-1/+1
| | | | https://github.com/ruby/reline/commit/298144b06a
* [ruby/reline] Negative history_size means unlimitedaycabta2020-04-292-12/+28
| | | | | | And unlimited is default. https://github.com/ruby/reline/commit/f5149c3ca6
* [ruby/reline] New items to history are dropped if history_size is zeroaycabta2020-04-291-0/+4
| | | | https://github.com/ruby/reline/commit/9bdbed9cbc
* [ruby/reline] Ignore non-absolute XDG_CONFIG_HOMENobuyoshi Nakada2020-04-291-5/+6
| | | | | | | | | https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > All paths set in these environment variables must be absolute. > If an implementation encounters a relative path in any of these > variables it should consider the path invalid and ignore it. https://github.com/ruby/reline/commit/45af6eea77
* [ruby/reline] Treat home dir correctlyaycabta2020-04-241-2/+4
| | | | https://github.com/ruby/reline/commit/9b1327d2f4
* [ruby/reline] Support XDG_CONFIG_HOMEaycabta2020-04-241-5/+17
| | | | | | | | In the XDG Specification, if ~/.config/readline/inputrc exists, then ~/.inputrc should not be read, but for compatibility with GNU Readline, if ~/.inputrc exists, then it is given priority. https://github.com/ruby/reline/commit/97f1e7db04
* [ruby/reline] Add ed_search_next_historyaycabta2020-04-181-0/+52
| | | | https://github.com/ruby/reline/commit/ca750b676b
* [ruby/reline] Add ed_search_prev_historyaycabta2020-04-181-0/+47
| | | | https://github.com/ruby/reline/commit/e9ae288825
* [ruby/reline] Use vi_search_{prev,next} to incremental searchaycabta2020-04-184-14/+14
| | | | https://github.com/ruby/reline/commit/cab312f584
* [ruby/reline] Rename search_history with incremental_search_historyaycabta2020-04-181-3/+3
| | | | https://github.com/ruby/reline/commit/d563063ea0
* [ruby/reline] Suppress error in case INPUTRC env is emptyaycabta2020-03-261-1/+10
| | | | https://github.com/ruby/reline/commit/bce7e7562b
* [ruby/reline] Work with wrong $/ value correctlyaycabta2020-03-261-1/+1
| | | | https://github.com/ruby/reline/commit/962ebf5a1b
* [ruby/reline] Version 0.1.3aycabta2020-02-151-1/+1
| | | | https://github.com/ruby/reline/commit/ea2b182466
* [ruby/reline] Use IO#write instead of IO#printaycabta2020-02-143-11/+11
| | | | | | IO#print always adds a string of $\ automatically. https://github.com/ruby/reline/commit/a93119c847
* [ruby/reline] Organize special keys escape sequencesaycabta2020-02-091-3/+22
| | | | https://github.com/ruby/reline/commit/41deb1a3d9
* [ruby/reline] Bypass cursor down when a char is rendered at eol on Windowsaycabta2020-02-024-3/+23
| | | | | | | A newline is automatically inserted if a character is rendered at eol on Windows command prompt. https://github.com/ruby/reline/commit/4bfea07e4a
* [ruby/reline] Fix Reline::Windows#scroll_downaycabta2020-02-021-1/+1
| | | | | | I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5
* [ruby/reline] Support GNOME style Home/End key sequences [Bug #16510]aycabta2020-01-291-0/+2
| | | | https://github.com/ruby/reline/commit/788f0df845
* Always use UTF-8 for Reline::GeneralIO on Windowsaycabta2020-01-261-1/+1
|
* Reline: Use a more robust detection of MinTTYLars Kanis2020-01-211-0/+29
| | | | | | | | | | | | | | 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
* [ruby/reline] Implement vi_change_metaaycabta2020-01-211-0/+12
| | | | https://github.com/ruby/reline/commit/8538e0e10f
* [ruby/reline] Implement vi_prev_char and vi_to_prev_charaycabta2020-01-201-0/+48
| | | | https://github.com/ruby/reline/commit/0ad3ee63fa
* [ruby/reline] Implement vi_to_next_charaycabta2020-01-201-2/+12
| | | | https://github.com/ruby/reline/commit/066ecb0a21
* Implement vi_insert_at_bol and vi_add_at_eolaycabta2020-01-171-0/+10
|
* Introduce an abstracted structure about the encoding of Relineaycabta2020-01-145-9/+21
| | | | | | 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.
* Support history-size in .inputrc correctlyaycabta2020-01-061-3/+5
|
* Complete indented and quoted string correctlyaycabta2020-01-061-2/+6
| | | | | | | | | | | | def foo ''.upca[TAB] This will be completed to be: def foo ''.upcase The indent was gone. This commit fixes the bug.
* Rescue EOFErroraycabta2020-01-051-0/+3
| | | | If C-d is pressed before IRB is ready, IRB crashes because EOFError occurs.
* [ruby/reline] Sort completion listKOBAYASHI Shuji2020-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #### 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
* [ruby/reline] Degenerate the terminal size to [$LINES, $COLUMNS] if it is ↵Yusuke Endoh2019-12-311-1/+5
| | | | | | | | unknown This is a workaround for https://github.com/ruby/irb/issues/50 https://github.com/ruby/reline/commit/5725677d1a
* Drop an invalid char as UTF-8aycabta2019-12-271-0/+10
|
* [ruby/reline] Version 0.1.2aycabta2019-12-251-1/+1
| | | | https://github.com/ruby/reline/commit/b41024e317
* Save last breaking point to completeaycabta2019-12-251-0/+1
|
* [ruby/reline] Version 0.1.1aycabta2019-12-251-1/+1
| | | | https://github.com/ruby/reline/commit/923f97d068
* The behavior of vi_end_of_transmission should be the same of vi_list_or_eofaycabta2019-12-251-12/+0
|
* ^D on non-empty line in vi mode behaves like Enteraycabta2019-12-251-1/+3
|
* Remove unused variableaycabta2019-12-241-1/+0
|
* The delete-char-or-list shows completed list when called at end of lineaycabta2019-12-242-6/+27
| | | | It doesn't behave the same as the delete-char.
* [ruby/reline] Version 0.1.0aycabta2019-12-241-1/+1
| | | | https://github.com/ruby/reline/commit/55d4dfec1e
* [ruby/reline] Use IO#raw to read one byteNobuyoshi Nakada2019-12-232-19/+5
| | | | https://github.com/ruby/reline/commit/be17740e82
* Support multibyte inputNobuyoshi Nakada2019-12-221-1/+2
|
* [ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_wordYusuke Endoh2019-12-221-0/+2
| | | | https://github.com/ruby/reline/commit/e98ad3b486
* Remove TODO commentaycabta2019-12-221-1/+1
|
* [ruby/reline] Preserve the input buffer across cursor_posYusuke Endoh2019-12-221-1/+5
| | | | | | | | | 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
* [ruby/reline] Consider Reline::ANSI.input at prepNobuyoshi Nakada2019-12-221-7/+16
| | | | https://github.com/ruby/reline/commit/b111cde3c3
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], for default gems.