Skip to content

Default value format #17

Open
Open

Description

@pablomayobre

This is a feature request, which would be fairly easy to add to this package.

Changing line 50 in the generator to

arguments[#arguments].displayName = string.format( '[%s=%s]', v.name, v.default )

This would autocomplete functions like:

love.graphics.printf(string,x, y, [align=left], [r=0], [sx=1], [sy=sx], [ox=0], [oy=0], [kx=0], [ky=0])

Note that the argument list can become quite long, so this should be carefully considered

Activity

  1. rm-code commented on Nov 25, 2017

    @rm-code
    Owner

    Hm that could be an issue, but the length wouldn't be a problem as soon as the line is pasted to the editor, right?

  2. pablomayobre commented on Nov 25, 2017

    @pablomayobre
    ContributorAuthor

    When the autocomplete is performed it becomes:

    love.graphics.printf(string,x, y, align, r, sx, sy, ox, oy, kx, ky)

    This is autocomplete-lua behaviour (argDisplay is only used in the autocomplete tooltip)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions