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

List more symbols than expected when using "goto symbol" for C language in ST3 #505

Closed
nash900 opened this issue Sep 30, 2014 · 6 comments
Closed

Comments

@nash900
Copy link

nash900 commented Sep 30, 2014

When using "goto symbol (ctrl+R) " for C language, it lists more symbols than expected. Here is an example file:

struct dac_module {
    void *hw;
};

void dac_func1(struct dac_module *dev_inst, uint32_t param1)
{
}

void dac_func2(struct dac_module *dev_inst, uint32_t param2)
{
}

If using "goto symbol", it will list:

dac_module
dac_func1
dac_module    // should remove, "struct dac_module *dev_inst" is just a pararmeter here
dac_func2
dac_module    // should remove

Does it possible to make "ctrl+R" to show symbols but not include those in "()"? Thanks.

@nash900
Copy link
Author

nash900 commented Nov 10, 2014

Is there a plan to fix it in the next version? Thanks.

@FichteFoll
Copy link
Collaborator

If you really need this fixed, you can do so yourself. The relevant code can be overridden and is exposed.

@nash900
Copy link
Author

nash900 commented Nov 10, 2014

Could you please give more hint for the "relevant code"? A python code? Maybe I can have a try.

@FichteFoll
Copy link
Collaborator

There is currently no real documentation available on this topic (it's in the works though), but I can tell you that the relevant files are .tmPreferences as they search for scopes in a file to define them as symbols. This case likely requires some higher knowledge of this concept, but sadly we don't have the documentation for that ready so I can't link it (and it's srsly too much to just explain in a comment).

You can access archived packages with the PackageResourceViewer package and should browse for something like Symbols*.tmPreferences in the C++ package.

@nash900
Copy link
Author

nash900 commented Nov 12, 2014

Ahhh, seems it's hard for me. Anyway, thanks for your answer.

@titoBouzout
Copy link
Collaborator

This issue was moved to jskinner/DefaultPackages#11

@sublimehq sublimehq locked and limited conversation to collaborators Dec 22, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants