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

Snippets #55

Open
wants to merge 35 commits into
base: master
from

Conversation

@hipstersmoothie
Copy link

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 referenced this pull request Apr 5, 2019
6 of 6 tasks complete

@hipstersmoothie hipstersmoothie force-pushed the hipstersmoothie:snippets branch from ca7ebe3 to b46818a May 6, 2019

@hipstersmoothie hipstersmoothie force-pushed the hipstersmoothie:snippets branch from 3183e73 to 0a0e46e May 6, 2019

@hipstersmoothie hipstersmoothie force-pushed the hipstersmoothie:snippets branch from b3df125 to 664beee Jun 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.