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 758
  • Win 310
  • Mac 260
  • Linux 188
Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26
Windows 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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