Skip to content
Sascha Goldhofer edited this page Mar 11, 2015 · 9 revisions

Getting started

completions are not suggested

Assuming no errors are logged on console, add a minimum scope rule as first item in settings.scopes. Go to Sublime Text | Preferences | Package Settings | FuzzyFilePath | Settings - User and add

"scopes": [
	{
		"scope": ".",
		"auto": true,
		// add your extensions here:
		"extensions": ["css", "html", "js"]
	}
]

This will propose filepaths for the given extensions in all autocompletion requests. To adjust the trigger see settings. To log trigger evaluation, in settings set "log": true".

absolute filepaths begin in wrong directory

set your project_directory either in project settings or user settings to the correct folder. project_directory must be relative to your sublime project directory.

relative filepaths are not pointing to the correct file

Relative filepaths point from the current file to the selected file. Folders are moved upwards until the target path is reachable. i.e. in case of css filepaths, the starting path may be relative from the html file importing the styles.

Set base_directory in scope rules to point from project_directory to html file. This will always set the starting path of the trigger to base_directory.