aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/input-method.rb
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] Add --extra-doc-dir option to show doc dialogaycabta2021-10-111-1/+3
| | | | https://github.com/ruby/irb/commit/3f79cb506f
* [ruby/irb] Determine left and right when the width of either side is zero ↵aycabta2021-10-081-2/+2
| | | | | | correctly https://github.com/ruby/irb/commit/5df6e1f027
* [ruby/irb] Calculate right side doc dialog width correctlyaycabta2021-10-081-1/+1
| | | | https://github.com/ruby/irb/commit/f34da7fa04
* [ruby/irb] Specify whether to show the doc dialog on the left or right side ↵aycabta2021-10-081-16/+20
| | | | | | by using variable names https://github.com/ruby/irb/commit/a23a88b8c9
* [ruby/irb] Display doc dialog in gaps on narrow screenaycabta2021-10-081-2/+23
| | | | https://github.com/ruby/irb/commit/4d7cefcaa4
* [ruby/irb] Update descriptions of methodsKaíque Kandy Koga2021-10-071-1/+2
| | | | | | | | | | | | From Reidline to Reline Update description used in take_corresponding_syntax_to_kw_do and is_the_in_correspond_to_a_for methods Use possessive noun correctly Second element https://github.com/ruby/irb/commit/4fa9714d6f
* [ruby/irb] Remove `require` in signal handler to avoid ThreadErrorMasataka Pocke Kuwabara2021-10-031-5/+0
| | | | | | `rdoc` has been required so it looks unnecessary https://github.com/ruby/irb/commit/5f749c613c
* [ruby/irb] Add comments for Alt+d key sequencesaycabta2021-09-061-1/+4
| | | | https://github.com/ruby/irb/commit/4cb5f7e546
* [ruby/irb] Use multiple trap_keyaycabta2021-09-061-2/+2
| | | | https://github.com/ruby/irb/commit/416abe2524
* [ruby/irb] Remove commeted out codeaycabta2021-09-041-1/+0
| | | | https://github.com/ruby/irb/commit/7dda1f803e
* [ruby/irb] Show doc at the same height as the autocompletion dialogaycabta2021-09-041-1/+1
| | | | https://github.com/ruby/irb/commit/a9db71e6bc
* [ruby/irb] Render properly if both autocomplete and show doc dialogs are ↵aycabta2021-09-041-1/+2
| | | | | | left of the cursor https://github.com/ruby/irb/commit/0090203107
* [ruby/irb] Use Reline::Key for trap_key in dialog callbackaycabta2021-09-031-2/+2
| | | | https://github.com/ruby/irb/commit/b05ce3c72d
* [ruby/irb] Add message to show full docaycabta2021-09-031-1/+2
| | | | https://github.com/ruby/irb/commit/6370a5d974
* [ruby/irb] Add Alt+d trap from show doc dialog to show full docaycabta2021-09-031-0/+12
| | | | https://github.com/ruby/irb/commit/368327b082
* [ruby/irb] Set the dialog width to render with a fixed widthaycabta2021-08-311-1/+1
| | | | https://github.com/ruby/irb/commit/80c4329643
* [ruby/irb] Follow that Dialog#contents_width has been renamed to #widthaycabta2021-08-311-1/+1
| | | | https://github.com/ruby/irb/commit/49a73d929e
* [ruby/irb] Make show doc dialog appears on the left at the right edgeaycabta2021-08-311-4/+6
| | | | https://github.com/ruby/irb/commit/6480eddd31
* [ruby/irb] Rename a variable "dialog" with "autocomplete_dialog"aycabta2021-08-311-2/+2
| | | | | | | Because it's just used to receive data from the autocomplete dialog, not for show doc dialog. https://github.com/ruby/irb/commit/f8b752bd98
* [ruby/irb] Use DialogRenderInfoaycabta2021-08-311-1/+3
| | | | https://github.com/ruby/irb/commit/5bc3a72ca3
* [ruby/irb] Take dialog to get scroll_topaycabta2021-08-311-1/+1
| | | | https://github.com/ruby/irb/commit/7209082a11
* [ruby/irb] Don't show doc when pointer is negativeaycabta2021-08-311-1/+1
| | | | https://github.com/ruby/irb/commit/48af34bfc2
* [ruby/irb] [].name to display the doc for Array.nameaycabta2021-08-301-0/+1
| | | | https://github.com/ruby/irb/commit/7c2abc14d8
* [ruby/irb] Rescue unknown error to quash crashingaycabta2021-08-301-0/+4
| | | | https://github.com/ruby/irb/commit/92cce941cb
* Add --autocomplete / --noautocomplete optionsaycabta2021-08-301-1/+4
|
* [ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_nameaycabta2021-08-291-1/+5
| | | | https://github.com/ruby/irb/commit/c5f13b23d7
* [ruby/irb] Add show doc dialog for Relineaycabta2021-08-291-0/+42
| | | | https://github.com/ruby/irb/commit/026700499d
* [ruby/irb] Evaluate each toplevel statementaycabta2021-04-031-7/+1
| | | | https://github.com/ruby/irb/commit/bc1b1d8bc3
* [ruby/irb] process multi-line pastes as a single entityCody Cutrer2021-04-031-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this allows pasting leading-dot chained methods correctly: ```ruby class A def a; self; end def b; true; end end a = A.new a .a .b ``` will properly return `true` instead of erroring on the `.a` line: ``` irb(main):001:1* class A irb(main):002:1* def a; self; end irb(main):003:0> end irb(main):004:0* irb(main):005:0> a = A.new irb(main):006:0* irb(main):007:0> a irb(main):008:0> .a irb(main):009:0> .a => #<A:0x00007f984211fbe8> ``` https://github.com/ruby/irb/commit/45aeb52575
* [ruby/irb] Complete require and require_relativeaycabta2021-03-241-0/+1
| | | | https://github.com/ruby/irb/commit/1c61178b4c
* [ruby/irb] add `IRB::FileInputMethod.open` to ensure closing associated FileNobuhiro IMAI2021-01-271-2/+18
| | | | | | | * tweak some methods not to raise exception after `#close` * use it in `IRB::IrbLoader#{source_file,load_file} https://github.com/ruby/irb/commit/ec2947acbd
* [ruby/irb] Change StdioInputMethod#eof? to non-blockingaycabta2020-12-231-1/+9
| | | | | | This fixes --inf-ruby-mode. https://github.com/ruby/irb/commit/0e4a818955
* [ruby/irb] Add OMIT_ON_ASSIGNMENTaycabta2020-09-141-0/+9
| | | | | | | | | | | Omit the results evaluated at assignment if they are too long. The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand, so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by default. The result is displayed on assignment, but it will always be short and within one line of the screen. https://github.com/ruby/irb/commit/c5ea79d5ce
* [ruby/irb] Expand path to run separated test correctlyaycabta2020-08-181-1/+1
| | | | https://github.com/ruby/irb/commit/be2937abd5
* [ruby/irb] Get rid of loading readline unnecessarilyNobuyoshi Nakada2020-08-181-10/+9
| | | | https://github.com/ruby/irb/commit/420e7d2270
* [ruby/irb] Check existence of rc files in irb_info commandaycabta2020-04-291-3/+7
| | | | https://github.com/ruby/irb/commit/cdbb9dfc9f
* [ruby/irb] Add irb_info commandaycabta2020-04-291-0/+33
| | | | https://github.com/ruby/irb/commit/a6fe58e916
* Use Reline.encoding_system_needs if existsaycabta2020-01-141-0/+4
|
* [ruby/irb] Revert "Reidline mode needs Reline what needs ↵aycabta2019-12-071-1/+1
| | | | | | | | | | | String#grapheme_clusters" This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7. New IRB parser needs new Ripper what has lex_state too. The new Ripper is adopted by Ruby 2.5 or later. https://github.com/ruby/irb/commit/9ab6e35a2c
* [ruby/irb] Reidline mode needs Reline what needs String#grapheme_clustersaycabta2019-12-071-1/+1
| | | | https://github.com/ruby/irb/commit/2b0b19b87c
* Use @eof variable for ReidlineInputMethod#eof?aycabta2019-11-301-1/+1
| | | | | | "IRB::InputMethod#eof?" requires eof status each user input but "ReidlineInputMethod#eof?" used "Reline.eof?" what is singleton data. "ReidlineInputMethod#eof?" is changed to use the result of user input.
* Remove an unnecessary variableaycabta2019-11-261-2/+1
|
* Remove e2mmap dependencyaycabta2019-11-251-1/+1
|
* Use IRB.conf[:AUTO_INDENT] setting in multiline modeaycabta2019-06-191-1/+1
|
* Implement auto indent for multilineaycabta2019-06-181-0/+5
|
* Use Reline.prompt_proc in IRBaycabta2019-06-141-0/+5
|
* Warn compile_error only when input is finishedTakashi Kokubun2019-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | Let's say we are in progress to write `"foo"`: ``` irb> "fo ``` at this moment, nothing is wrong. It would be just a normal way to write `"foo"`. Prior to this commit, the `fo` part was warned because of 5b64d7ac6e7cbf759b859428f125539e58bac0bd. But I think warning such a normal input is not valuable for users. However, we'd like to warn `:@1` or `@@1` which is also a syntax error. Then this commit switches the syntax highlight based on whether the input text is finished or not. When it's not finished yet, it does not warn compile_error.
* Use IRB::InputMethod#eof? to quitaycabta2019-05-271-1/+1
|
* Add and use Reline::Unicode.escape_for_printTakashi Kokubun2019-05-251-5/+10
|
* Respect --nocolorize on REPL source highlightTakashi Kokubun2019-05-251-3/+5
|