FuzzyImports is a SublimeText 3 plugin that allows to browse file system via the quick panel and add javascript module imports. It is greatly influenced by FuzzyFileNav.
- Open JS file where you want to add an import.
- Press
Cmd+Alt+icombindation (osx) orWin+Alt+i(win, Linux) to bring up the FuzzyImport's quick panel. It will show you a content of the opened file's directory. - Navigate to the file you want to add and press Enter.
- If it is a js file and it has named exports it will show them in quick panel and give an ability to add it as a named import.
- Otherwise it will add a file as a default import
- Browse files from quick panel starting from target file's directory
- Quickly add javascript default exports
- View non-default exports and choose directly from quick panel
- Add non-js imports too
The easiest way to install FuzzyImports is via Package Control.
- Press ctrl + shift + p (Win, Linux) or cmd + shift + p (OSX) to bring up the quick panel and select "Package Control: Install Package". It will show a list of installable plugins
- Select FuzzyImports and press Enter.
- Restart Sublime to make sure everything is loaded properly
Use https://github.com/SublimeText/UnitTesting to run tests.
- FuzzyFileNav - for idea and mechanics
- Lark - robust and easy to use parser for exports extraction
