Bug #7680

IRB autocompletion doesn't autocomplete methods

Added by Zachary Scott over 1 year ago. Updated over 1 year ago.

[ruby-core:51348]
Status:Rejected
Priority:Normal
Assignee:Keiju Ishitsuka
Category:lib
Target version:2.0.0
ruby -v:2.0.0 Backport:

Description

steps to reproduce:

$ irb
irb(main):001:0> irb_

This returns nothing, but should return all of the irb commands. Such as irbbinding, irbcontext, irbjobs, irbhelp, etc etc

Associated revisions

Revision 39048
Added by Zachary Scott about 1 year ago

  • lib/irb.rb, lib/irb/context.rb: Add documentation on how to enable auto-indentation and autocompletion using irbrc and irb_context [Bug #7642] and [Bug #7680]

History

#1 Updated by Zachary Scott over 1 year ago

  • Status changed from Open to Assigned

#2 Updated by Keiju Ishitsuka over 1 year ago

zzak (Zachary Scott) wrote:

steps to reproduce:

$ irb
irb(main):001:0> irb_

This returns nothing, but should return all of the irb commands. Such as irbbinding, irbcontext, irbjobs, irbhelp, etc etc

Please, try:

% irb -r irb/completion
irb(main):001:0> irb_

#3 Updated by Zachary Scott over 1 year ago

This works, should irb/completion be required by default?

#4 Updated by Keiju Ishitsuka over 1 year ago

zzak (Zachary Scott) wrote:

This works, should irb/completion be required by default?

Yes.
Otherwise, you can write .irbrc to:

require "irb/completion"

#5 Updated by Zachary Scott over 1 year ago

Can we make irb default require irb/completion?

I will open up a feature request.

#6 Updated by Lee Jarvis over 1 year ago

This works, should irb/completion be required by default?

I looks like it never was. Although I don't see any reason for not including this behaviour by default. Maybe depending on readline.

#7 Updated by Keiju Ishitsuka over 1 year ago

  • Status changed from Assigned to Rejected

zzak (Zachary Scott) wrote:

Can we make irb default require irb/completion?

I will open up a feature request.

Irb completion function is still incomplete.
I might be the default this feature is now more complete.

Also available in: Atom PDF