Project

General

Profile

Actions

Bug #7680

closed

IRB autocompletion doesn't autocomplete methods

Added by zzak (zzak _) about 11 years ago. Updated about 11 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 _) about 11 years ago

  • Status changed from Open to Assigned

Updated by keiju (Keiju Ishitsuka) about 11 years 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 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 _) about 11 years ago

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

Updated by keiju (Keiju Ishitsuka) about 11 years ago

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 _) about 11 years ago

Can we make irb default require irb/completion?

I will open up a feature request.

Updated by injekt (Lee Jarvis) about 11 years 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.

Updated by keiju (Keiju Ishitsuka) about 11 years 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0