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

Different truncation behavior for "base suffix" completion in sublime-syntax #322

Open
michaelblyons opened this issue Jan 17, 2021 · 1 comment

Comments

@michaelblyons
Copy link

This is about the completion helper when editing sublime-syntax files. There's one completion for "base suffix" that I believe is derived from the base scope (e.g. text.plain you get plain as a completion). I believe it's taking a substring of the last . to the end of the scope name.

What I would like it to do is take a substring from the first . to the end of the scope name. If I'm editing text.git.config, I want the "base suffix" completion to offer git.config, not config.

@FichteFoll
Copy link
Member

FichteFoll commented Jan 18, 2021

By convention, the scope suffix should only be a single subscope, at least as far as I'm aware, so in your case that should probably become git-config. I just don't think we can formulate this into a general rule, since for example you still want html for text.html.basic, or I use sublime-theme for source.json.sublime.theme.

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