forked from avajs/sublime-ava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guess module name from function name
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.