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

groovysh: do not offer GroovyObject Default methods on tab completion

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0-beta-1
    • Component/s: None
    • Labels:
      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

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              tkruse Thibault Kruse
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: