Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9345

Provide a some kind of auto-completion of tokens

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be helpful, if the token-macro plug-in would provide a text box (or some kind of content assist) that lats auto-complete existing tokens. This would be useful for all plug-ins that consume tokens.

      E.g. the build name setter plug-in has a text box where you can type the new build name. It would be simpler for the user if there would be some kind of completion when starting to type a token.

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          Just looking into this, since the text boxes are defined by the plugin, perhaps it would be best to provide a method that could be called to get the autocomplete list that plugins could use?

          Show
          slide_o_mix Alex Earl added a comment - Just looking into this, since the text boxes are defined by the plugin, perhaps it would be best to provide a method that could be called to get the autocomplete list that plugins could use?
          Hide
          slide_o_mix Alex Earl added a comment -

          Actually, from looking into this more. There is no way to get the NAMES of macros in the system. Each macro has a method to see if it accepts a macro name, the names of the macros are not accessible via method. Since there are many plugins in the wild that would need to be updated if a new method were added to get the name, it might be very difficult to get something like this implemented because there isn't a way to get the names of the macros to check for auto-completion.

          Show
          slide_o_mix Alex Earl added a comment - Actually, from looking into this more. There is no way to get the NAMES of macros in the system. Each macro has a method to see if it accepts a macro name, the names of the macros are not accessible via method. Since there are many plugins in the wild that would need to be updated if a new method were added to get the name, it might be very difficult to get something like this implemented because there isn't a way to get the names of the macros to check for auto-completion.
          Hide
          slide_o_mix Alex Earl added a comment -

          Provide a method to get auto-completion possibilities based on an input string. This could be used in various plugins to implement auto-completion for their fields.

          Show
          slide_o_mix Alex Earl added a comment - Provide a method to get auto-completion possibilities based on an input string. This could be used in various plugins to implement auto-completion for their fields.

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              drulli Ulli Hafner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: