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

Autocompletion​Fuzzy

by shagabutdinov ST2/ST3

Sublime anyword completion

Details

Installs

  • Total 9K
  • Win 5K
  • OS X 3K
  • Linux 2K
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 3 2 5 3 3 5 7 5 6 3 2 2 5 1 1 5 7 5 9 8 5 6 2 5 6 1 6 6 8 7 9 3 3 4 9 5 7 1 1 3 1 3 2 1 6 4
OS X 0 2 1 7 0 2 1 1 3 0 1 2 3 0 0 4 2 2 2 4 3 6 3 4 0 2 1 0 3 2 3 0 5 6 3 1 1 5 3 0 3 2 5 1 2 3
Linux 0 1 3 2 1 1 1 1 2 1 1 0 2 2 1 6 1 2 1 2 2 2 2 2 0 2 3 6 1 0 2 0 2 2 9 2 0 2 0 2 3 3 1 1 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Autocompletion plugin

This is really glorious plugin that reduce plain typing considerably while coding.

Demo

Demo

Installation

  • Package Control: plugin is avaiable under AutocompletionFuzzy in sublime's package-control.
  • GIT: plugin should be cloned under AutocompletionFuzzy name.

Features

Provides 8 different types of autocompletion:

  1. Complete word - basic completion; completes word that occurenced in text and opened files.

  2. Complete word (fuzzy) - like “complete word” but uses fuzzy match over words.

  3. Complete subword - completes snake_case and CamelCase words parts.

  4. Complete long word - complete long words: class names with namespaces (Class::Name), method calls (object.method), filenames (file/name.py), urls (http://…).

  5. Complete long word (fuzzy) - line “complete long word” but uses fuzzy match over words.

  6. Complete nesting - completes over and into brackets: can complete full method call (method(arg1, arg2)), method arguments (arg1, arg2), array ([value1, value2]) and everything that has brackets over it or after it.

  7. Complete nesting (fuzzy) - like “complete nesting” but uses fuzzy match.

  8. Complete line - competes whole line.

However it maps only 6 types of autocompletion. Not fuzzy completions aren't mapped to keyboard shortcuts by default. See “installation” section if you would like map non-fuzzy completion behavior.

All lists are build in order of first occurence of word. That makes autocomplete very predictable and easy to use.

Words completion works over all files opened. Nesting completion works only in current file (because of performance issues)

Installation

This plugin is part of sublime-enhanced plugin set. You can install sublime-enhanced and this plugin will be installed automatically.

If you would like to install this package separately check “Installing packages separately” section of sublime-enhanced package.

If you don't like fuzzy behavior you should rebind keyboard shortcuts after installation in the “Autocompletion/Default (OSNAME).sublime-keymap” file (non-fuzzy behavior are commented by default).

Usage

Type a one of two characters of the beginning of word. Than hit keyboard shortcut or run command to complete the word. You can run same command again to complete next/previous occurence.

If you like fuzzy completion it is really useful to type a start character and following character from the middle of word to receive more accurate completion. E.g. for complete localvariable type “lv” and hit keyboard shortcut. First character of word should always be character of completion. However if word starts with underscore () it possible to type next character, e.g. for complete _local_variable same “lv” will work.

Commands

Description Keyboard shortcuts Command palette
Complete word forward (fuzzy) ctrl+p Autocompletion: complete word forward (fuzzy)
Complete word backward (fuzzy) ctrl+o Autocompletion: complete word backward (fuzzy)
Complete word forward Autocompletion: complete word forward
Complete word backward Autocompletion: complete word backward
Complete subword forward ctrl+shift+p Autocompletion: complete subword forward
Complete subword backward ctrl+shift+o Autocompletion: complete word backward
Complete long word forward (fuzzy) ctrl+alt+p Autocompletion: complete long word forward (fuzzy)
Complete long word backward (fuzzy) ctrl+alt+o Autocompletion: complete long word backward (fuzzy)
Complete long word forward Autocompletion: complete long word forward
Complete long word backward Autocompletion: complete long word backward
Complete nesting forward (fuzzy) alt+p Autocompletion: complete nesting forward (fuzzy)
Complete nesting backward (fuzzy) alt+o Autocompletion: complete nesting backward (fuzzy)
Complete nesting forward Autocompletion: complete nesting forward
Complete nesting backward Autocompletion: complete nesting backward
Complete line forward alt+shift+p Autocompletion: complete line forward
Complete line backward alt+shift+o Autocompletion: complete line backward

Dependencies