Project

General

Profile

Actions

Bug #7680

closed

IRB autocompletion doesn't autocomplete methods

Bug #7680: IRB autocompletion doesn't autocomplete methods

Added by zzak (zzak _) almost 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Target version:
ruby -v:
2.0.0
Backport:
[ruby-core:51348]

Description

steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as irb_binding, irb_context, irb_jobs, irb_help, etc etc

Updated by zzak (zzak _) almost 13 years ago Actions #1 [ruby-core:51351]

  • Status changed from Open to Assigned

Updated by keiju (Keiju Ishitsuka) almost 13 years ago Actions #2 [ruby-core:51354]

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 irb_binding, irb_context, irb_jobs, irb_help, etc etc

Please, try:

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

Updated by zzak (zzak _) almost 13 years ago Actions #3 [ruby-core:51355]

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

Updated by keiju (Keiju Ishitsuka) almost 13 years ago Actions #4 [ruby-core:51360]

zzak (Zachary Scott) wrote:

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

Yes.
Otherwise, you can write .irbrc to:

require "irb/completion"

Updated by zzak (zzak _) almost 13 years ago Actions #5 [ruby-core:51362]

Can we make irb default require irb/completion?

I will open up a feature request.

Updated by injekt (Lee Jarvis) almost 13 years ago Actions #6 [ruby-core:51361]

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.

Updated by keiju (Keiju Ishitsuka) almost 13 years ago Actions #7 [ruby-core:51382]

  • 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.

Actions

Also available in: PDF Atom