-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add short description and example re annotation
in Completions Files
#121
Conversation
annotations
annotation
in Completions Files
Appreciate the contribution. Lgtm, but I prefer to have another set of eyes just in case. |
Add a "since version ____" and I'm happy, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I have some suggestions.
docs/reference/completions.md
Outdated
@@ -82,7 +82,7 @@ is identical to the `contents`: | |||
{ "trigger": "foo\ttest", "contents": "foobar" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to add the separate annotation
form as a direct example here.
docs/reference/completions.md
Outdated
@@ -93,6 +93,12 @@ is identical to the `contents`: | |||
slightly grayed | |||
and does not affect the trigger itself. | |||
|
|||
Annotations can also be defined using `annotation`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in a separate annotation
definition that mentions the version this was added in.
docs/reference/completions.md
Outdated
@@ -82,7 +82,7 @@ is identical to the `contents`: | |||
{ "trigger": "foo\ttest", "contents": "foobar" } | |||
``` | |||
|
|||
**trigger** | |||
**trigger** and **annotation** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definition should only be about trigger
.
As I separated out annotations I noticed the page was also missing https://www.sublimetext.com/docs/completions.html#completion-metadata |
I don't have the full history anymore, but it is likely that the page on completions files predates the official documentation on this topic since that received an overhaul in the recent years, also leading up to ST4. |
In that case, I'm not sure what the ground rules are here. Can I use assets from the official docs like images? Paraphrase large chunks of content? Replace an entire section with a link to the official docs? |
Remove redundant info. Add short description and example re `annotations` Added completions metadata section
I made some changes on top of yours after rebasing this PR in #123, which supersedes this PR. Let me know what you think. |
First time PR to anything other than package_control_channel. Please let me know if I did something weird.
I noticed that the use of
annotation
isn't described in page Completions Files other than through the use of\t
. I've added a short description of it and an example using it that matches the previous example.Thanks,