sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Allow $text selector for custom commands as substring

Open VulumeCode opened this issue 3 years ago • 0 comments

Problem description

The text selector can only be used as a whole string "$text". It cannot be used as a substring.

[
    {
        "caption": "Create bookmark at commit",
        "command": "git",
        "args": {
            "argv": [
                "branch", "bookmarks/$text", "$select_commit"
            ]
        }
    }
]

Nevertheless, it is parsed and replaced by an empty string.

Preferred solution

Do show a prompt for the $text selector.

Alternatives

Write "bookmarks/..." every time.

Screenshots

image

VulumeCode avatar Sep 13 '22 10:09 VulumeCode