PackageDev icon indicating copy to clipboard operation
PackageDev copied to clipboard

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

Open michaelblyons opened this issue 5 years ago • 1 comments

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.

michaelblyons avatar Jan 17 '21 02:01 michaelblyons

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.

FichteFoll avatar Jan 18 '21 17:01 FichteFoll