GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sagold/FuzzyFilePath: Autocomplete relative or absolute file paths in Sublime Text project folder

BranchesTags
Open more actions menu

Latest commit

 

History

553 Commits
553 Commits

Folders and files

NameName
Last commit message
Last commit date
common
common
 
 
project
project
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
CHANGES.md
CHANGES.md
 
 
Default (Linux).sublime-keymap
Default (Linux).sublime-keymap
 
 
Default (OSX).sublime-keymap
Default (OSX).sublime-keymap
 
 
Default (Windows).sublime-keymap
Default (Windows).sublime-keymap
 
 
Default.sublime-commands
Default.sublime-commands
 
 
Default.sublime-keymap
Default.sublime-keymap
 
 
FuzzyFilePath.md
FuzzyFilePath.md
 
 
FuzzyFilePath.sublime-settings
FuzzyFilePath.sublime-settings
 
 
FuzzyFilePathDemo.gif
FuzzyFilePathDemo.gif
 
 
LICENSE
LICENSE
 
 
Main.sublime-menu
Main.sublime-menu
 
 
ProjectListener.py
ProjectListener.py
 
 
QueryCompletionListener.py
QueryCompletionListener.py
 
 
README.md
README.md
 
 
TestRunner.py
TestRunner.py
 
 
ViewListener.py
ViewListener.py
 
 
command_goto_file.py
command_goto_file.py
 
 
command_insert_path.py
command_insert_path.py
 
 
command_rebuild_cache.py
command_rebuild_cache.py
 
 
command_replace_region.py
command_replace_region.py
 
 
command_show_context.py
command_show_context.py
 
 
command_show_current_settings.py
command_show_current_settings.py
 
 
command_show_info.py
command_show_info.py
 
 
completion.py
completion.py
 
 
controller.py
controller.py
 
 
current_state.py
current_state.py
 
 
expression.py
expression.py
 
 
query.py
query.py
 
 

Repository files navigation

FuzzyFilePath

Sublime Text Plugin

Fuzzy search and insert filenames inside your current project directory. Highly customizable.


Basic settings support Javascript, HTML, CSS, PHP and glsl, but may be adjusted for most languages

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

Use Alt+Enter to open the file under cursor

Configure Completion Panel

Ensure you have autocompletion activated for Sublime. In those cases, where the autocompletion panel is still not opened (for any type of completions), you may extend auto_complete_triggers to add special rules for the completion panel to show up. i.e. enabling autocompletion for latex \input{"path/to/asset"}, you could add:

"auto_complete_triggers":
[
	{
		"characters": "abcdefghijklmnopqrstuvwxyz",
		"selector": "text.tex.latex"
	}
]

or enabling html completion for <script src="path/to/script">

"auto_complete_triggers":
[
	{
		"characters": "abcdefghijklmnopqrstuvwxyz",
		"selector": "string.quoted.double.html"
	}
]

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

About

Autocomplete relative or absolute file paths in Sublime Text project folder

Topics

filepathfuzzy-searchsublime-text

Resources

Readme
WTFPL license
Activity

Stars

154 stars

Watchers

4 watching

Forks

15 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.