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

All Autocomplete

by alienhard ALL Trending Top 25

Extend Sublime autocompletion to find matches in all open files of the current window

Labels auto-complete

Details

  • 2019.06.11.03.44.42
  • github.​com
  • github.​com
  • 5 years ago
  • 38 minutes ago
  • 12 years ago

Installs

  • Total 1.09M
  • Win 660K
  • Mac 235K
  • Linux 191K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 3 30 29 23 25 44 17 16 19 32 30 22 22 22 28 30 28 41 30 29 17 25 17 27 34 28 29 20 31 32 25 29 30 31 28 22 28 36 36 37 27 17 22 25 55 31
Mac 1 13 9 9 8 4 13 3 5 8 2 7 5 4 7 3 9 6 10 9 4 9 3 7 5 14 10 3 4 12 7 7 5 9 3 2 6 9 2 7 3 6 7 10 6 11
Linux 2 8 10 13 6 8 6 7 5 6 7 8 8 5 11 8 5 5 4 6 6 5 7 15 10 8 8 10 8 5 15 2 7 7 4 5 10 4 10 7 8 6 6 9 8 7

Readme

Source
raw.​githubusercontent.​com

All Autocomplete Sublime Text

Extends the default autocomplete to find matches in all open files.

By default Sublime only considers words found in the current file.

Install

If you have Package Control installed in Sublime just press ctrl+shift+p (Windows, Linux) or cmd+shift+p (OS X) to open the Command Pallete. Start typing 'install' to select 'Package Control: Install Package', then search for AllAutocomplete and select it. That's it.

You can also install this package manually by entering the Packages directory of Sublime Text 2/3 and issuing on a terminal:

git clone https://github.com/alienhard/SublimeAllAutocomplete

Settings

You can disable the additional autocompletion provided by this package for specific source files and even select syntax within files. In the Sublime menu go to Preferences > Package Settings > All Autocomplete > Settings – User.

Example: the following Setting would disable completions when you're editing CSS or JavaScript code, and would not source any completions from Markdown files:

"exclude_from_completion": [
    "css",
    "js"
],
"exclude_sources": [
  "markdown"
],
"min_word_size": 5, // don't show completions for words with fewer than this many chars
"max_word_size": 40 // don't show completions for words with more than this many chars

The names provided in this list are matched against the so-called “syntax scope” of the currently autocompleted input. For example, in a CSS file, when you start typing a new CSS class name, the syntax scope is “source.css meta.selector.css”. The names you provide in the config above are partially matched against this scope. This means, you can completely disable All Autocomplete for all CSS code by specifying “css” – or you can disable it only for specific parts, for example, CSS selectors by specifying “selector.css”. Or to disable completion in comments, include “comment” in the list.

Note, if you want to disable it in C source, but not in CSS, add “source.c” in the list (since “c” alone would also match css).

You can find the syntax scope of code at the current cursor position with Control+Shift+P.

LICENSE

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright © 2013 Adrian Lienhard adrian.lienhard@gmail.com

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.