Zinggi / DictionaryAutoComplete

This adds dictionary entries to the completions inside comments. For lazy typers!
Other
94 stars 19 forks source link
autocompletion sublime-text

Dictionary Auto-Complete

Pic

This plug-in adds auto-completion entries from the dictionary file. Useful for very lazy typers like me or if you're searching for a particular word.

The default scopes where this plug-in is active are comments, strings and text. But you can customize them.

Just type Ctrl + Space to show auto-completion, or allow auto-complete to always show suggestions by changing your 'Settings - User' for example like this:

"auto_complete_selector": "text, comment, string"

DictionaryAutoComplete takes the suggestions from the dictionary used for spell-checking by default. But if you want you can set another one in the settings (for example a frequency dictionary).

Installation

Very easy with Package Control right inside Sublime Text 2/3 (Package Control needs to be installed):

  1. Ctrl + shift + P
  2. Search for "inst", hit enter
  3. Search for "DictionaryAutoComplete", hit enter

Manually (not recommended):

  1. Clone or download this package
  2. Put it into your Packages directory (find using 'Preferences' -> 'Browse Packages...')

Configuration

You can customize the following parameters in (a copy in User package folder of) DictionaryAutoComplete.sublime-settings :

Commands

Two commands are added in the Command Palette (Ctrl+Shift+P):

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.