ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Fuzzy​Imports

by 11bit ST3

SublimeText 3 plugin to browse file system from quick panel and add javascript module imports.

Labels javascript, js, imports

Details

Installs

  • Total 741
  • Win 302
  • Mac 254
  • Linux 185
Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15
Windows 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

FuzzyImports

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.

How to Use

"How to Use"

  1. Open JS file where you want to add an import.
  2. Press Cmd + Alt + i combindation (osx) or Win + Alt + i (win, Linux) to bring up the FuzzyImport's quick panel. It will show you a content of the opened file's directory.
  3. Navigate to the file you want to add and press Enter.
  4. 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.
  5. Otherwise it will add a file as a default import

Features

  • 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

Installation

The easiest way to install FuzzyImports is via Package Control.

  1. 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
  2. Select FuzzyImports and press Enter.
  3. Restart Sublime to make sure everything is loaded properly

Development

Use https://github.com/SublimeText/UnitTesting to run tests.

Credits

  • FuzzyFileNav - for idea and mechanics
  • Lark - robust and easy to use parser for exports extraction