Skip to content

Apply variable substitution in Custom Action Controls #1466

Closed

Description

@goran-w

When creating Controls for Custom Actions, it would be very helpful if the variables ${REPO}, ${BRANCH} etc were expanded there as well (at least in some of the fields)...

Image

Image

(Additionally, there seems to be a rather limited length for the Label field for TextBox / Path Selector in the resulting Action-dialog. Could the label and the dialog width be dynamically sized, or the label be placed on its own line/row if exceeding a certain length?)

Activity

  1. love-linger commented on Jun 27, 2025

    @love-linger
    Collaborator

    I've pushed a new commit that always shows the scope target of current custom action.

    Image

  2. self-assigned this
    on Jun 27, 2025
  3. love-linger commented on Jun 27, 2025

    @love-linger
    Collaborator

    Image

  4. goran-w commented on Jun 27, 2025

    @goran-w
    ContributorAuthor

    Thank you, that's an improvement. However, could we at least expand relevant variables in the Default field?

    It would be very helpful when renaming etc, to be able to start from the existing name and just make a minor adjustment!

  5. love-linger commented on Jun 27, 2025

    @love-linger
    Collaborator

    Done.

  6. goran-w commented on Jun 27, 2025

    @goran-w
    ContributorAuthor

    Thanks, that's great! However, (sorry to be nitpicky) BUT for consistency the ${REPO} variable should be available in all scopes... 😉

    It could be included in PrepareStringByTarget(), I guess.

  7. love-linger commented on Jun 27, 2025

    @love-linger
    Collaborator

    Done

  8. goran-w commented on Jun 27, 2025

    @goran-w
    ContributorAuthor

    Great, thanks!

  9. goran-w commented on Jun 27, 2025

    @goran-w
    ContributorAuthor

    One final tweak: The help-text below Arguments: can now be re-used below Default: to indicate that variables can be expanded there...

    Image

  10. goran-w commented on Jun 27, 2025

    @goran-w
    ContributorAuthor

    Perfect!

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions