makandra / geordi

Collection of command line tools used in our daily work with Ruby, Rails and Linux.
https://makandra.com/
MIT License
103 stars 17 forks source link

Disable multi-line autocomplete by default #176

Closed vrandr closed 1 year ago

vrandr commented 2 years ago

Pasting in IRB 1.2+ is very slow. See these cards for further infos:

Can you disable the IRB multiline feature by calling rails console -- --nomultiline in https://github.com/makandra/geordi/blob/master/lib/geordi/util.rb#L86-L94?

This is supported. See https://github.com/rails/rails/issues/39909 for details.

denzelem commented 2 years ago

Is there any decision on this issue, if this will be implemented in geordi?

tecden commented 2 years ago

Is there any decision on this issue, if this will be implemented in geordi?

Yes, we have decided to implement the proposal. The change will come in the next days

codener commented 1 year ago

Copied from PR:

I tried geordi console on Ruby 2.7 with IRB 1.4.1 locally and IRB 1.2.6 on the Server. Unfortunately, pasting is still slow.

It seems the performance improvement is bound to the Ruby version and not the irb version. So please refactor this accordingly.

Please also update the CHANGELOG with notable changes (see https://github.com/makandra/geordi#contributing), and please print a message when using the flag:

Interaction.note 'Using --no-multiline switch for faster pasting'