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

All Autocomplete

by alienhard ALL Top 100

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
  • 6 years ago
  • 2 weeks ago
  • 13 years ago

Installs

  • Total 1.09M
  • Win 665K
  • Mac 236K
  • Linux 193K
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14
Windows 2 21 33 30 29 15 12 14 23 21 26 27 27 20 20 31 30 31 30 17 26 25 23 31 24 35 25 35 26 24 29 25 22 23 25 19 22 34 27 35 22 16 21 26 31 21
Mac 2 7 9 5 4 4 5 8 2 9 7 1 5 8 6 8 6 9 12 3 3 7 9 11 10 10 4 8 5 9 6 3 2 3 5 6 6 6 11 5 4 5 11 8 6 6
Linux 0 12 2 8 7 7 9 4 5 6 8 11 4 4 6 5 6 7 8 7 5 4 8 7 11 4 8 7 5 5 9 7 7 8 7 5 9 4 7 8 8 5 3 4 7 6

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.