ProjectMaker icon indicating copy to clipboard operation
ProjectMaker copied to clipboard

Token's suggestions

Open ventormo opened this issue 6 years ago • 1 comments

  1. It seems to me that the settings not enough the ability to completely disable the replacement of tokens.

  2. You did not think to change the syntax of tokens to a more exotic one? ${token} is used in too many projects and is de facto the standard for value substitution (along with %token%). This leads to a lot of conflicts. Could it be worth changing it to, for example, @ <token>? (I have never met such an variant).

  3. It is necessary to add a certain keyword/sequence of characters, which will say that this token should not be replaced. That is, if the user enters /s (or another) when requesting the ${very_very_long_long_token_name} token, the plugin does not touch this token.

ventormo avatar Jul 02 '19 13:07 ventormo

Workaround for changing syntax:

projectmaker.py

L183 r = re.compile(r"\${[^}]*}") => r = re.compile(r"\&{[^}]*}") L249 r = re.compile(r"\${" + token + "}") => r = re.compile(r"\&{" + token + "}")

&{new_syntax}

ventormo avatar Jul 02 '19 13:07 ventormo