summaryrefslogtreecommitdiff
path: root/lib/reline
AgeCommit message (Collapse)Author
2020-08-18Strip trailing spaces [ci skip]Nobuyoshi Nakada
2020-08-18[ruby/reline] Get rid of loading pathname unnecessarilyNobuyoshi Nakada
https://github.com/ruby/reline/commit/9bd54b7f1c
2020-08-18[ruby/reline] Use the standard SPDX ID for license in gemspecMaciej Mensfeld
It is better to use SPDX ID for license field: https://guides.rubygems.org/specification-reference/#license= ref: https://spdx.org/licenses/Ruby.html https://github.com/ruby/reline/commit/8468a727e5
2020-08-18[ruby/reline] Remove duplicated line of codeaycabta
Co-authored-by: Quentin Sabah <quentin.sabah@gmail.com> https://github.com/ruby/reline/commit/5526e9f7ee
2020-08-18[ruby/reline] Keep original characters in inputrcaycabta
https://github.com/ruby/reline/commit/96583c6336
2020-08-18[ruby/reline] Support mode iconMark Delk
Co-authored-by: aycabta <aycabta@gmail.com> https://github.com/ruby/reline/commit/067b618123
2020-08-18[ruby/reline] Use single quotes for non-expanded string literalsaycabta
https://github.com/ruby/reline/commit/3bf7c7d722
2020-08-18[ruby/reline] Check Errno::EIOaycabta
Catch Errno::EIO what will be occurred if the console terminates I/O before Reline finishes rendering. https://github.com/ruby/reline/commit/e51eaa6d43
2020-08-18[ruby/reline] Add home/end mapping for urxvt and relativesTomás Pollak
https://github.com/ruby/reline/commit/c30b293f1c
2020-05-17[ruby/reline] Remove unnecessary TODO commnetaycabta
https://github.com/ruby/reline/commit/23c67fb7b3
2020-05-17[ruby/reline] If history-size isn't numeric, it should be 500aycabta
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
2020-05-12Some I/O in test doesn't have "position"aycabta
Just returns column 1 for ambiguous width because this I/O is not tty and can't seek.
2020-04-29[ruby/reline] Add URL reference of history-sizeaycabta
https://github.com/ruby/reline/commit/13420197b8
2020-04-29[ruby/reline] Version 0.1.4aycabta
https://github.com/ruby/reline/commit/298144b06a
2020-04-29[ruby/reline] Negative history_size means unlimitedaycabta
And unlimited is default. https://github.com/ruby/reline/commit/f5149c3ca6
2020-04-29[ruby/reline] New items to history are dropped if history_size is zeroaycabta
https://github.com/ruby/reline/commit/9bdbed9cbc
2020-04-29[ruby/reline] Ignore non-absolute XDG_CONFIG_HOMENobuyoshi Nakada
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
2020-04-24[ruby/reline] Treat home dir correctlyaycabta
https://github.com/ruby/reline/commit/9b1327d2f4
2020-04-24[ruby/reline] Support XDG_CONFIG_HOMEaycabta
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
2020-04-18[ruby/reline] Add ed_search_next_historyaycabta
https://github.com/ruby/reline/commit/ca750b676b
2020-04-18[ruby/reline] Add ed_search_prev_historyaycabta
https://github.com/ruby/reline/commit/e9ae288825
2020-04-18[ruby/reline] Use vi_search_{prev,next} to incremental searchaycabta
https://github.com/ruby/reline/commit/cab312f584
2020-04-18[ruby/reline] Rename search_history with incremental_search_historyaycabta
https://github.com/ruby/reline/commit/d563063ea0
2020-03-26[ruby/reline] Suppress error in case INPUTRC env is emptyaycabta
https://github.com/ruby/reline/commit/bce7e7562b
2020-03-26[ruby/reline] Work with wrong $/ value correctlyaycabta
https://github.com/ruby/reline/commit/962ebf5a1b
2020-02-15[ruby/reline] Version 0.1.3aycabta
https://github.com/ruby/reline/commit/ea2b182466
2020-02-14[ruby/reline] Use IO#write instead of IO#printaycabta
IO#print always adds a string of $\ automatically. https://github.com/ruby/reline/commit/a93119c847
2020-02-09[ruby/reline] Organize special keys escape sequencesaycabta
https://github.com/ruby/reline/commit/41deb1a3d9
2020-02-02[ruby/reline] Bypass cursor down when a char is rendered at eol on Windowsaycabta
A newline is automatically inserted if a character is rendered at eol on Windows command prompt. https://github.com/ruby/reline/commit/4bfea07e4a
2020-02-02[ruby/reline] Fix Reline::Windows#scroll_downaycabta
I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5
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