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

Fuzzy​File​Path

by sagold ST2/ST3

Autocomplete relative or absolute file paths in Sublime Text project folder

Details

Installs

  • Total 3K
  • Win 1K
  • OS X 1K
  • Linux 502
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 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 1 4 7 5 9 4 9 4 8 16 19 10 5 6 1 10 7 4 10 8 8 8 8 2 13 10 13 8 5 4 9 9 5 3 6 6 5 6 14 9 10 7 6 2 5 11
OS X 4 8 6 7 4 5 7 10 4 6 11 7 10 6 5 7 6 12 9 8 13 11 6 9 15 3 12 1 0 10 4 10 5 2 6 3 1 0 8 8 10 7 3 2 5 6
Linux 0 3 2 2 5 2 7 2 3 5 3 6 1 2 6 7 2 2 1 5 6 3 1 4 5 5 3 2 3 0 0 3 3 2 2 0 2 2 3 0 2 5 0 2 2 1

Readme

Source
raw.​githubusercontent.​com

FuzzyFilePath

Sublime Text Plugin

Fuzzy search and insert filenames inside your current project directory. Highly customizable.


Basic settings support Html, Css and Javascript, but may be adjusted for every language

Installation

Package Control

After Package Control installation, restart Sublime Text. Use the Command Palette Cmd+Shift+P (OS X) or Ctrl+Shift+P (Linux/Windows) and search for Package Control: Install Package. Wait until Package Control downloaded the latest package list and search for FuzzyFilePath.

github

in <SublimeConfig>/Packages/ call: git clone https://github.com/sagold/FuzzyFilePath.git

Sublime Text 2

in <SublimeConfig>/Packages/FuzzyFilePath/ switch to Sublime Text 2 Branch with: git checkout st2

Attention: Sublime Text 2 will no longer be supported.

Usage

Filepaths will be suggested if there is a matching trigger for the current context and its property auto is set to true. For a matching trigger, filepath completions may be forced (ignoring auto property) by the following shorcuts:

  • Ctrl+Alt+Space inserts filepaths relative, overriding possible settings
  • Ctrl+Shift+Space inserts filepaths absolute, overriding possible settings

The current string may modify the suggested filepaths by the following rules:

  • word suggests all matching files by the type (relative or absolute) as specified in the matched rule
  • ./ suggests matching files within the current directory and inserts selection relative
  • ../ suggests all matching files and inserts selection relative
  • /folder suggests all matching files and insert selection absolute

FuzzyFilePath is disabled for single files or files outside the opened folder.

open file

UseAlt+Enter to open the file under cursor

Special Characters

If your projects contains filenames with special characters, consider modifying Sublime Texts word_separators.

i.e. in AngularJs filenames may start with $. In Sublime Text | Preferences | Settings - User redeclare word separators, removing $:

"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"

Customization

For further details about troubleshooting, customization, settings and keybindings please refer to the Wiki

Trying to integrate other languages? See the auto complete Python package tutorial

Related Plugins

AutoFileName
  • uses file discovery based on current directory instead of fuzzy search
  • adds properties for images in autocompletion description