Skip to content

hcb2ff/SearchFile

 
 

Repository files navigation

SearchFile for Sublime Text

Official SearchFile plugin for Sublime Text.

How to install

unsupport with Package Control

Manually:

1.Clone or download git repo into your packagesfolder(in Sublime Text,find Browse Packages...menu item to open this folder) with folder named SearchFile

2.Restart Sublime Text editor (if required)

##overriding keyboard shortcuts Default keyboard shortcuts is alt+m.You can overrrding it as youself.

Open sublime-keymap file or click Sublime Text Menu button Preferences --> Package Settings --> SearchFile --> Key Bindings-Default

Then, change alt+m to you want keybord shortcuts

[
  {
    "keys": ["alt+m"], "command": "searchfile"
  }
]

Config project path

Before use search file, you maybe want to config two params in settings as yourself.

Open sublime-keymap file or click Sublime Text Menu button Preferences --> Package Settings --> SearchFile --> Settings-Default

just as follow:

{
	//config project root path, Default ""
	"root": "D:\\workspace",

	//enhance search intelligence, false represent for select full line path to search commod
	"enhance": true
}

1.root represent your project root path. serch file in all folders you opend if root path left "". config it for more faster serching file

2.enhance search ability default true, if you set it as false, you should select full line your path before press alt+m

How to use

just point at file path string line just like follow

@import url("toefl_ico.css");
@import url("toefl_crumb.css");
@import url("word/word.css");
@import url("toefl_ad.css");
@import url("learn/learn-ad.css");

then press alt+m, Sublime Text will open this relative file.

You can also point more files path with ctrl + click, then will open those files.

You can also open absolute path with project root path. just as

/path_one/path_two/test.css

then it will open root path(D:\workspace) + /path_one/path_two/test.css

If file path is error or not find file, it will show error message.

About

a sublime plugin for quick find relative link file on project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%