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
  • 10 years ago
  • 1 hour ago
  • 12 years ago

Installs

  • Total 1.59M
  • Win 1.22M
  • Mac 213K
  • Linux 157K
Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 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
Windows 18 43 71 72 89 64 62 71 52 60 56 89 89 66 89 71 58 86 78 62 95 70 61 57 72 57 90 78 72 44 57 77 84 86 116 81 65 65 76 95 93 99 84 66 53 87
Mac 0 8 10 10 9 15 14 14 8 6 9 8 13 12 13 10 8 11 5 8 14 11 4 7 10 8 10 15 14 6 5 11 10 15 9 6 8 8 17 10 14 13 8 11 7 7
Linux 2 14 15 8 10 7 8 12 15 14 24 13 12 8 7 10 6 13 14 11 10 13 10 9 9 6 10 8 6 12 11 20 12 10 12 9 9 4 14 14 11 13 8 11 7 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 /.