Skip to content

Commit

Permalink
Guess module name from function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kipit committed Feb 24, 2016
1 parent 3d75394 commit 8f30057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/ava.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
import test from 'ava';
import $1 from '$2';
import $1 from ${2:'${1/([A-Z])/-\l$1/g}'};

This comment has been minimized.

Copy link
@kipit

kipit Feb 24, 2016

Author Owner

I didn't find a way to make the second placeholder inside the quote. If I wrote, instead import $1 from '${2:${1/([A-Z])/-\l$1/g}}';, the cursor fall at the begining of the module name and the module name is not selected.

test('${3:title}', t => {
t.is($1(), '$4');
Expand Down

0 comments on commit 8f30057

Please sign in to comment.