Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module auto complete to scan for parameters #57

Open
SaharZehavi opened this issue Feb 18, 2016 · 1 comment
Open

module auto complete to scan for parameters #57

SaharZehavi opened this issue Feb 18, 2016 · 1 comment

Comments

@SaharZehavi
Copy link
Collaborator

When choosing a module from the auto complete list, sublime will scan the module's files and will extract and display any parameter field in it.

Example:

The module "pages/master" contains the following text:

Hello [[P:name]]! Have a great day!

When i choose to auto complete the module, instead of:

[[pages/master]]

i will get :

[[pages/master name=""]]

notice:
only blocks with the format [[P:field]] should be chosen. if there's a [[field]], [[q: field]], etc, they should be ignored.
The [[P:field]] block is case insensitive so [[p:field]] is also valid.
Also, this should NOT happen when choosing a ui element.

@SaharZehavi
Copy link
Collaborator Author

Regex for parameters:

[[[pP]:.*]]

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

No branches or pull requests

1 participant