Since I upgraded to Rails 7, whenever I type something on the rails console, I get a window with the possible auto completion possibilities.
That’s nice if it wasn’t that slow. Typing in characters is not that slow, but pressing the backspace key allow me on average to remove one character per second. If I press the backspace key more than that, it gets ignored. it is really annoying
Is there a way to disable auto completion ? Escape character does not let me close the completion box.
I ran into the same situation. The idea is nice but it’s just unusable. It also makes the terminal very jumpy and it’s easier to loose focus on the pointer. It gets even worse when I start a new string and paste a few thousand lines, it nearly crashes.
If you are using Heroku, you should be able to create an .irbrc in your app’s root and check that in. When you do heroku run bin/rails c, it’ll pick that up and avoid using it.
FWIW, I just updated both and the completion locally is unusable due to white on light blue color scheme. I looked at the repos for IRB and reline and cannot see how these colors can be changed. If anyone knows how, let me know and I will test + try to make a doc change in one of these projects
Nothing in there worked for me, so either the changes haven’t been released or I was not able to understand what to do. It’s possible that using the branches discussed in a few comments would work
Using at least reline 0.4.0, I was able to configure the colors using these instructions. There are even themes you can install such as the irb-theme-tokyonight gem, which is really equivalent to adding something like the following to your .irbrc file
Reline::Face.config(:completion_dialog) do |conf|
conf.define(:default, foreground: "#c0caf5", background: "#1a1b26")
conf.define(:enhanced, foreground: "#c0caf5", background: "#283457")
conf.define(:scrollbar, foreground: "#16161e", background: "#7aa2f7")
end