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

autoComplete with macros #32

Open
gopig opened this issue Jul 24, 2012 · 4 comments
Open

autoComplete with macros #32

gopig opened this issue Jul 24, 2012 · 4 comments

Comments

@gopig
Copy link

gopig commented Jul 24, 2012

i find it's unable to complete with macros.
is there any way to work aroud?

@ostinelli
Copy link
Owner

I don't know what you are talking about. Can you expand on that?

@gopig
Copy link
Author

gopig commented Jul 25, 2012

i holp it can index _.hrl file in the incldue dir
and process -define tag.
currently it olny can process -export tag.
for example, i define the follow macros:
-define(INVITE_WAIT_TIME, 1_30).
-define(CARRY_WAIT_TIME, 1*30).

i hope when i type INVITE the following would be complete by sublimErl

@ostinelli
Copy link
Owner

I understand.

If the macros are defined in the same file, then sublime will take care of that automatically. If the macros are on a different file, then this obviously has to be contextualized: only the imported .hrl files' macros should be available as autocomplete options, in the module that imports them.

This takes some work, it is a good suggestion but not a priority right now.

Thank you for the input, will keep this issue here.

r.

@ostinelli
Copy link
Owner

have you considered CTags? Would that work for you?

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

2 participants