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

Auto​File​Name

by liamcain ALL Top 25

Sublime Text plugin that autocompletes filenames

Details

  • 2014.01.13.07.57.49
    2013.11.27.18.03.11
  • github.​com
  • github.​com
  • 11 years ago
  • 43 minutes ago
  • 13 years ago

Installs

  • Total 1.61M
  • Win 1.24M
  • Mac 215K
  • Linux 160K
May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 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
Windows 27 59 55 52 58 71 52 45 51 46 84 60 52 29 34 46 51 48 48 64 28 41 28 52 50 89 93 34 32 64 49 56 78 57 50 44 43 51 61 66 44 47 49 76 84 92
Mac 4 6 20 13 13 7 8 5 11 6 11 10 10 6 2 7 12 13 18 9 10 5 5 5 9 22 22 7 8 9 18 18 15 13 6 6 13 3 12 5 13 6 13 35 25 7
Linux 2 6 10 4 4 4 6 9 10 6 12 6 8 10 8 5 9 8 12 9 8 9 13 10 12 12 9 6 9 16 10 6 7 4 7 7 5 10 11 17 13 6 6 11 8 8

Readme

Source
raw.​githubusercontent.​com

AutoFileName: Autocomplete Filenames in Sublime Text

Do you ever find yourself sifting through folders in the sidebar trying to remember what you named that file? Can't remember if it was a jpg or a png? Maybe you just wish you could type filenames faster. No more.

Whether your making a img tag in html, setting a background image in css, or linking a .js file to your html (or whatever else people use filename paths for these days…), you can now autocomplete the filename. Plus, it uses the built-in autocomplete, so no need to learn another pesky shortcut.

Usage

If you are looking to autocomplete an image path in an HTML <img> tag:

<img src="../|" />

Pressing ctrl+space, will activate AutoFileName. I list of available files where be ready to select.

Looking for an even more automatic and seemless completion? Add the following to your User Settings file:

"auto_complete_triggers":
[
  {
     "characters": "<",
     "selector": "text.html"
  },
  {
     "characters": "/",
     "selector": "string.quoted.double.html,string.quoted.single.html, source.css"
  }
]

With this, there's no need to worry about pressing ctrl+space, autocompletion with appear upon pressing /.