WeSearch

Irb-autosuggestions: Fish-like autosuggestions for irb

·1 min read · 0 reactions · 0 comments · 11 views
#programming#ruby#development
Irb-autosuggestions: Fish-like autosuggestions for irb
⚡ TL;DR · AI summary

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.

Key facts
Original article
GitHub
Read full at GitHub →
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.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub