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

  • 3 2015.06.07.10.24.08
    2 2014.11.24.13.10.08
  • github.​com
  • github.​com
  • 3 months ago
  • Just now
  • 1 year ago

Installs

  • Total 6K
  • Win 2K
  • OS X 2K
  • Linux 934
Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22
Windows 3 6 10 8 21 15 3 6 9 6 18 13 8 7 4 10 15 11 13 8 5 8 10 16 12 13 5 7 6 9 11 14 15 19 5 9 17 11 8 13 16 6 4 7 11 12
OS X 1 13 8 7 6 7 5 3 11 8 6 7 6 6 6 8 9 11 13 7 7 2 8 6 6 9 15 7 8 10 16 22 16 7 5 12 9 5 8 12 6 8 3 8 7 10
Linux 2 2 0 10 7 1 2 3 5 2 4 5 4 5 3 1 3 5 3 3 3 3 8 4 2 7 3 3 2 2 3 6 3 4 1 2 8 0 1 11 1 4 2 3 12 5

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