Jump to everywhere by built-in fuzzy function to perform a line-based searching for the current file or the active project folder. If you open up multiple folders in the same sublime window, the folder relative to the current open file will be used for project searching.
Example key bindings to the window commands:
[
{ "keys": ["super+k", "super+f"], "command": "fuzzy_current_file"},
{ "keys": ["super+k", "super+p"], "command": "fuzzy_active_project"},
]Or, simply run the following commands by Ctrl-Shift-P in command palette:
SimpleFuzzy: Current File…SimpleFuzzy: Active Project…
Your favorite file listing command and checking command can be specified by adding user settings.
{
"simple_fuzzy_ls_cmd": "ag foo {folder}",
"simple_fuzzy_chk_cmd": "where ag",
}- Variable
{folder}is the target folder to be searched. - Command specified in
simple_fuzzy_chk_cmdwill only be used to check if the listing commandsimple_fuzzy_ls_cmdshould be used.
If user-defined command fails or not specified, default using the following commands for fallback:
rg:rg --files "{folder}"(highly recommended, required ripgrep)git:git -C "{folder}" ls-filesbuilt-in: Python built-inos.walkfunction
User can also specify the prefer one as: rg, git, or built-in
Run the following command in Console view to toggle console log.
>>> window.run_command('simple_fuzzy_debug_toggle')- Performance issue
- Always go to the line begining