summaryrefslogtreecommitdiff
path: root/lib/reline/config.rb
AgeCommit message (Collapse)Author
2021-09-07[ruby/reline] Refactor the merging key bindings to make it more readableaycabta
https://github.com/ruby/reline/commit/59665a22de
2021-09-07[ruby/reline] Change the comment about key bindings to more appropriateaycabta
https://github.com/ruby/reline/commit/4364d9a386
2021-09-06[ruby/reline] Memoize path of `.inputrc` [Ref #319]manga_osyo
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`. Memoize the path of `.inputrc` and don't get the path after the second time. https://github.com/ruby/reline/commit/7b90b16165
2021-09-06[ruby/reline] Support oneshot key bindings config for key_trap of dialog ↵aycabta
callbacks https://github.com/ruby/reline/commit/5f1141b693
2021-08-30[ruby/reline] Set autocompletion is false by defaultaycabta
For compatibility with ext/readline. https://github.com/ruby/reline/commit/13d9b936bc
2021-08-30[ruby/reline] Add config.autocompletionaycabta
https://github.com/ruby/reline/commit/3d918e4ccb
2021-07-30[ruby/reline] Check empty .inputrcaycabta
https://github.com/ruby/reline/commit/b60b3b76cd
2021-06-21Rescue conversion error of inputrcaycabta
2021-06-21[ruby/reline] The config file must accept any character encodingaycabta
In Japan, so many programmers used EUC-JP to write text files that contain Japanese. Many .inputrc files which contain EUC-JP are still being copied and used. This commit supports the whole encoding of what user set including UTF-8. ref. https://github.com/ruby/reline/pull/280 https://github.com/ruby/reline/commit/0b45022e16
2021-06-21[ruby/reline] ensure reline's encoding is used when reading inputrc ↵Mark Delk
character values This change ensures we use `Reline::IOGate`'s `encoding` when converting characters from their integer values. This fixes an issue that may occur if you have UTF characters in your `.inputrc`, but your default encoding isn't set. For example: ``` > 127864.ord.chr RangeError: 127864 out of char range from (pry):1:in `chr' > Reline::IOGate.encoding => #<Encoding:UTF-8> > 127864.ord.chr(Reline::IOGate.encoding) => "🍸" ``` https://github.com/ruby/reline/commit/cf372fc0fc
2021-04-09[ruby/reline] Add calling Reline::Config#reset_default_key_bindings to ↵aycabta
#reset, which is forgot to call
2021-04-08[ruby/reline] Separate keystrokes each editing modeaycabta
https://github.com/ruby/reline/commit/ee23e6f3f8
2021-01-08[ruby/reline] Correct var names in Reline were different from vi-*-mode-stringaycabta
https://github.com/ruby/reline/commit/8255fc93b9
2020-12-22[ruby/reline] Support isearch-terminatorsaycabta
https://github.com/ruby/reline/commit/a7922da16b
2020-12-05[ruby/reline] Support bracketed paste modeaycabta
https://github.com/ruby/reline/commit/d1a6869322
2020-08-18[ruby/reline] Get rid of loading pathname unnecessarilyNobuyoshi Nakada
https://github.com/ruby/reline/commit/9bd54b7f1c
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-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-04-29[ruby/reline] Add URL reference of history-sizeaycabta
https://github.com/ruby/reline/commit/13420197b8
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] 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-03-26[ruby/reline] Suppress error in case INPUTRC env is emptyaycabta
https://github.com/ruby/reline/commit/bce7e7562b
2020-01-06Support history-size in .inputrc correctlyaycabta
2019-12-22Remove TODO commentaycabta
2019-12-05Fix variable catchaycabta
2019-07-28[reline] Do not compile regexp for each lineNobuyoshi Nakada
2019-07-04Support Control- and Meta-aycabta
2019-07-04Move a comment to proper placeaycabta
2019-07-04Parse key sequence more strictlyNobuyoshi Nakada
2019-07-04Use lstrip instead of gsub which can match only onceNobuyoshi Nakada
2019-07-04Skip indented comment lines [Bug #15981]Nobuyoshi Nakada
2019-06-02Check conditional nestings in INPUTRCNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02Prefer $INPUTRC over the default in the homeNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02Add true condition `Reline`Nobuyoshi Nakada
2019-06-02Add Reline test for unknown macroaycabta
2019-06-02Add new test for Reline within pipeaycabta
2019-06-02Add comments to key bindings vars of Reline::Configaycabta
2019-06-01Just use `File.readlines`Nobuyoshi Nakada
2019-06-01Use inputrc data for keystroke settingaycabta
2019-05-24Support Meta key in Relineaycabta
2019-05-21Remove ~/.inputrc not found error messageaycabta
2019-05-13Implement Reline::HISTORY as an expanded Arrayaycabta
2019-05-13Add attr_accessor for Reline's Config attrsaycabta
2019-05-12Check INPUTRC env in Reline::Configaycabta
2019-04-30Add Reline as a fallback library for Readlineaycabta
* lib/reine.rb, lib/reline/*: Reline is a readline stdlib compatible library. * lib/readline.rb: Readline uses a fallback to Reline when ext/readline doesn't exist. * tool/sync_default_gems.rb: add ruby/reline as a default gem. * appveyor.yml: add "set RELINE_TEST_ENCODING=Windows-31J" for test suit of Reline, and add "--exclude readline" to "nmake test-all" on Visual Studio builds because of strange behavior. * spec/ruby/library/readline/spec_helper.rb: skip Reline as with RbReadline.
2019-04-23Revert "IRB is improved with Reline and RDoc, take 2"Nobuyoshi Nakada
Accidentally merged when 89271d4a3733bc5e70e9c56b4bd12f277e699c42 "Adjusted indents".
2019-04-23IRB is improved with Reline and RDoc, take 2aycabta