Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6499

groovysh: do not offer GroovyObject Default methods on tab completion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0-beta-1
    • None
    • None

    Description

      When completing, completion always offers the Default Groovy methods, which are mostly of no interest to the programmer. Eg.

      groovy:000> Foo.
      addShutdownHook( any( any() asBoolean() ...

      And these methods make it more difficult to find the relevant instance methods. I suggest to reduce the amount of methods shown on default tab completion for the purpose of usability.

      Several variants are possible, such as offering all candidates every second time tab is pressed without other changes, or offering more candidates when the user has typed a longer prefix.
      The change can of course be configurable in the preferences.

      I would make a more concrete suggestion when I started implementing a bit.

      To be discussed on user mailing list.

      Attachments

        Activity

          People

            melix Cédric Champeau
            tkruse Thibault Kruse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: