Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Snippet feedback #4

Open
sindresorhus opened this issue Feb 15, 2016 · 3 comments
Open

Snippet feedback #4

sindresorhus opened this issue Feb 15, 2016 · 3 comments
Labels

Comments

@sindresorhus
Copy link
Member

I included what I thought would be useful, but could use some feedback on it.

https://github.com/sindresorhus/sublime-ava/tree/master/snippets

Anything missing or something that could be improved? (Assertion snippets are planned https://github.com/sindresorhus/atom-sublime/issues/1).

Sublime has pretty powerful snippet system http://docs.sublimetext.info/en/latest/extensibility/snippets.html#substitutions, so I was thinking we could for example in the AVA snippet autofill the import by converting camelCase fooBar to foo-bar with a regex, e.g. import fooBar from 'foo-bar', so foo-bar is autofilled in this case.

Relevant Atom plugin discussion: avajs/atom-ava#4

@sindresorhus
Copy link
Member Author

@kipit mentioning you since you did such a great job with the EditorConfig snippets, in case you have some knowledge to share or want to help out :)

@kipit
Copy link
Contributor

kipit commented Feb 19, 2016

I will take a look nigthly. I get the idea.

@kipit
Copy link
Contributor

kipit commented Feb 24, 2016

Any feedback on #5?

I was also thinking to handle this syntax on ava snippet: import {foo, bar} from 'foo-module' but I’m not really familiar with ES6, is-it something we often encounter? If yes what can you purpose as module?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants