Skip to content

Snippets#55

Closed
hipstersmoothie wants to merge 35 commits intoseek-oss:masterfrom
hipstersmoothie:snippets
Closed

Snippets#55
hipstersmoothie wants to merge 35 commits intoseek-oss:masterfrom
hipstersmoothie:snippets

Conversation

@hipstersmoothie
Copy link

@hipstersmoothie hipstersmoothie commented Mar 30, 2019

closes #38

This builds off of #52 and does a little refactoring to make the snippet rendering code re-usable.

A user can define snippets in their config

{
  snippets: {
    Foo: '<div>Foo</div>',
    Bar: '<div>Bar</div>',
    Baz: '<div>Baz</div>'
  }
}

Then when a user presses Ctrl+Space or Cmd+Space something like this will pop up:

Screen Shot 2019-03-29 at 8 05 26 PM

Ctrl+Space or Cmd+Space will also show the appropriate suggestion based on context. If used with the hints already up, it will close the hints.

@hipstersmoothie hipstersmoothie mentioned this pull request Apr 5, 2019
6 tasks
@michaeltaranto
Copy link
Contributor

michaeltaranto commented Feb 4, 2020

Thanks for the inspiration, we just released snippets support in v0.15.0.

Let us know if you have any feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple example code

2 participants