/sublime_auto_file_name

Sublime Text plugin that autocompletes filenames.

Primary LanguagePythonMIT LicenseMIT

AutoFileName

Latest Release

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 you're making an 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 there's no need to learn another pesky shortcut.

Features

  • Display filenames and folders
  • Show dimensions next to image files
  • Autoinsert dimensions in img tags (can be disabled in settings)
  • Support for both '/' and '' for all you Windows hooligans

Installation

To install AutoFileName using package control1

  1. Open up the command palette again and find Package Control: Install Package, and just search for AutoFileName.

Usage

Nothing!

For example:

If you are looking to autocomplete an image path in an HTML <img> tag: <img src="../|" />

AutoFileName will display a list of files without you having to do anything. As you type, the results will narrow. The list will automatically update as you enter a new directory so you don't have to do a thing.

Settings

There are some options now.

Perhaps you're working on a website and all the image files are relative to the project root instead of the Computer's root directory. No worries. Just tell AutoFileName the project root. (More info in the settings file.)

Additionally, if you hate awesomeness, you can turn off some of the automagicalness and use a boring keybinding to activate AutoFileName.

How Can I help?

  • Got a feature request? Something bugging you and you're about to uninstall it? Submit a bug report with all your fears, desires, and vulgarity. I'll heartily try to fix the plugin to your specifications... well, I'll consider it.