InsaneDoggo / PackageTemplates

http://ceh9.github.io/PackageTemplates/
Apache License 2.0
37 stars 7 forks source link

support global vars for custom path #5

Closed edolphin-ydf closed 7 years ago

InsaneDoggo commented 7 years ago

Hi, thx for your request, i'll add this feature after some checks. P.S. i'm working on plugin in leisure time, so it may take few days.

InsaneDoggo commented 7 years ago

What did you mean by:

it could be empty, this may means ignore this search

  1. Cancel one action then continue search?
  2. Cancel CustomPath and create in default path?
  3. Cancel creating element (template, dir)?
InsaneDoggo commented 7 years ago

Here #2 u can downlaod version with your feature. Notify me if it works not as expected. P.S. u shoud use ${DS} for dollar sign $. (important for Regex ).

edolphin-ydf commented 7 years ago

Hi, the pic below is an example, the global var ${mult} is an optional var, so it may be an empty string. In this case, i want the plugin ignore this action and continue search the next one. If not, it will search path with an empty string and report an error not found. So, answer your question, i means 1. Cancel one action then continue search?

InsaneDoggo commented 7 years ago

In this case your pull-request is correct, all must works fine.