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

period/dot "." not recognized as word separator by autocomplete #4353

Open
fabeit opened this issue Jun 1, 2021 · 4 comments
Open

period/dot "." not recognized as word separator by autocomplete #4353

fabeit opened this issue Jun 1, 2021 · 4 comments

Comments

@fabeit
Copy link

fabeit commented Jun 1, 2021

The autocomplete in ST4 does not recognize period as part of the same word. This is problematic for R code because many people use period for naming long variable such as variable.with.long.name

ST3 autocomplete recognized words that contained "." as one word.

I have tried to set "word_separators": "." in my preferences but it has no effect.

If this is a wanted feature it will probably push away many R users or force them to go back to ST3.

@deathaxe
Copy link
Collaborator

deathaxe commented Jun 1, 2021

Actually default R package ships with a syntax specific R.sublime-settings file to exclude . from "word_separators" for exactly this reason. The issue is it being ignored by ST's auto-completion system (and probalby (m)any other functions).

Due to different requirements for each syntax those aspects need to be configurable.

see also: #238

forum thread: https://forum.sublimetext.com/t/sublime-text-4-r-code-autocomplete-doesnt-recognize-variables-with-period/58386

I am uncertain about labels. From perspective of a R user it is a regression. The solution might be seen as an enhancement of existing functionalities.

@fabeit
Copy link
Author

fabeit commented Jun 2, 2021

Thank you for your response, so it seems I am not the only one with this problem. I find it confusing though that even if this issue has been known since 2014, everything was working fine in ST3.

@fabeit
Copy link
Author

fabeit commented Sep 20, 2021

Are there any updates on this issue or do you plan to leave many R users behind?

@deathaxe
Copy link
Collaborator

Related with or caused by #4901

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