Irb-autosuggestions: Fish-like autosuggestions for irb
Irb::Autosuggestions provides a feature for IRB that displays ghost text suggestions based on command history. Users can easily accept suggestions by pressing the right arrow key, enhancing the coding experience. The feature is enabled by default but can be disabled through configuration settings.
- ▪Irb::Autosuggestions shows gray ghost text for recent matching history entries as users type in IRB.
- ▪To accept a suggestion, users can press the right arrow key, which replaces the current buffer with the suggested text.
- ▪The feature can be disabled by modifying the IRB configuration file or using an environment variable.
Opening excerpt (first ~120 words) tap to expand
Irb::Autosuggestions No need to explain. Fish-like autosuggestions for IRB — ghost text from history as you type. Contents Irb::Autosuggestions Contents Installation Usage Configuration How it works Development License Installation Add to your Gemfile: gem 'irb-autosuggestions' ~/.irbrc: require 'irb-autosuggestions' Usage Start typing in IRB. Gray ghost text appears after the cursor, showing the most recent matching history entry: irb(main):001* [1,2,3].map do |el| irb(main):002* el.succ <- "cc" in gray irb(main):003> end <- "d" in gray Press right arrow (->) to accept the full multiline suggestion. Configuration Autosuggestions are enabled by default.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.