ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Simple Fuzzy

by ukyouz ST4

Fuzzy search line-based jump for the current file and project files.

Details

Installs

  • Total 238
  • Win 115
  • Mac 68
  • Linux 55
Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SimpleFuzzy package for Sublime Text

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.

Usage

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…

Customization

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_cmd will only be used to check if the listing command simple_fuzzy_ls_cmd should be used.

If user-defined command fails or not specified, default using the following commands for fallback: 1. rg: rg --files "{folder}" (highly recommended, required ripgrep) 2. git: git -C "{folder}" ls-files 3. built-in: Python built-in os.walk function

User can also specify the prefer one as: rg, git, or built-in

Debugging

Run the following command in Console view to toggle console log.

>>> window.run_command('simple_fuzzy_debug_toggle')

Known issues

  • Performance issue
  • Always go to the line begining