Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Feature request: Convert Case #170

@idleberg

Description

@idleberg

There's one feature I miss compared to Sublime Text: controlling case used in snippets. Here's an example from the NSIS package:

!insertmacro MUI_LANGUAGE "${1:English}"
LangString DESC_SECTION_INDEX \${LANG_${1/(.*)/\U\1/}} "${2:section_description}"

The result would look like this:

!insertmacro MUI_LANGUAGE "English"
LangString DESC_SECTION_INDEX ${LANG_ENGLISH} "section_description"

Notice the /\U\1/ part which converts the string (in this case the word “English”) to uppercase letters. There's also a /\L\1/ counterpart to convert the string to lowercase. (I'm not sure what the number 1 does in there!)

Edit: If I'm not mistaken, the number sets the amount of times the preceding string is inserted (once in the example)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions