Forum: Ruby-core [ruby-trunk - Bug #7680][Open] IRB autocompletion doesn't autocomplete methods

7fe945668a4fc098e886e20dea71d2ee?d=identicon&s=25 zzak (Zachary Scott) (Guest)
on 2013-01-10 14:05
(Received via mailing list)
Issue #7680 has been reported by zzak (Zachary Scott).

----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
7fe945668a4fc098e886e20dea71d2ee?d=identicon&s=25 zzak (Zachary Scott) (Guest)
on 2013-01-10 14:09
(Received via mailing list)
Issue #7680 has been updated by zzak (Zachary Scott).

Status changed from Open to Assigned


----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680#change-35321

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
97f338629741aa42d6717bfba0c2830f?d=identicon&s=25 keiju (Keiju Ishitsuka) (Guest)
on 2013-01-10 15:04
(Received via mailing list)
Issue #7680 has been updated by keiju (Keiju Ishitsuka).


zzak (Zachary Scott) wrote:
> steps to reproduce:
>
> $ irb
> irb(main):001:0> irb_<TAB>
>
> 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_<TAB>

----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680#change-35324

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
7fe945668a4fc098e886e20dea71d2ee?d=identicon&s=25 zzak (Zachary Scott) (Guest)
on 2013-01-10 15:07
(Received via mailing list)
Issue #7680 has been updated by zzak (Zachary Scott).


This works, should irb/completion be required by default?
----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680#change-35325

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
97f338629741aa42d6717bfba0c2830f?d=identicon&s=25 keiju (Keiju Ishitsuka) (Guest)
on 2013-01-10 15:30
(Received via mailing list)
Issue #7680 has been updated by keiju (Keiju Ishitsuka).


zzak (Zachary Scott) wrote:
> This works, should irb/completion be required by default?

Yes.
Otherwise, you can write .irbrc to:

require "irb/completion"


----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680#change-35330

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
9077af710bdadc972a7898e457bf6ec1?d=identicon&s=25 Lee Jarvis (hiroshi)
on 2013-01-10 15:35
(Received via mailing list)
I looks like it never was. Although I don't see any reason for not
including this behaviour by default. Maybe depending on readline.
7fe945668a4fc098e886e20dea71d2ee?d=identicon&s=25 zzak (Zachary Scott) (Guest)
on 2013-01-10 15:52
(Received via mailing list)
Issue #7680 has been updated by zzak (Zachary Scott).


Can we make irb default require irb/completion?

I will open up a feature request.
----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680#change-35331

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
97f338629741aa42d6717bfba0c2830f?d=identicon&s=25 keiju (Keiju Ishitsuka) (Guest)
on 2013-01-11 14:48
(Received via mailing list)
Issue #7680 has been updated by keiju (Keiju Ishitsuka).

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.
----------------------------------------
Bug #7680: IRB autocompletion doesn't autocomplete methods
https://bugs.ruby-lang.org/issues/7680#change-35358

Author: zzak (Zachary Scott)
Status: Rejected
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:

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

This returns nothing, but should return all of the irb commands. Such as
irb_binding, irb_context, irb_jobs, irb_help, etc etc
This topic is locked and can not be replied to.