DictionaryAutoComplete
This adds dictionary entries to the completions inside comments. For lazy typers!
Details
Installs
- Total 22K
- Win 12K
- Mac 6K
- Linux 4K
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 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 2 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 2 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Linux | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Dictionary Auto-Complete
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):
- Ctrl + shift + P
- Search for “inst”, hit enter
- Search for “DictionaryAutoComplete”, hit enter
Manually (not recommended):
- Clone or download this package
- 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
:
- encoding
: The dictionary encoding (like "UTF-8"
or "ISO-8859-1"
).
- insert original
: If the default auto-completion list should be used or not.
- use added words
: If added_words
section of the settings should be used or not.
- use ignored words
: If ignored_words
section of the settings should be used or not.
- maximum results
: The maximal number of results that this plug-in should return (for slower computer smaller number is better).
- scopes
: Define the scopes where this plug-in is active.
- minimal length
: The minimal length of a word to be completed (for slower computer you should play with this parameter to find what is optimal).
- forbidden prefixes
: This allows to not auto-complete after some characters, which can be useful for compatibility with other plug-ins.
- languages
: A language specific settings. Here you can overwrite all the previous settings for a particular language. Here is also the place to set an alternative dictionary if you want.
- dictionary
: A path to alternative dictionary to use in place of the default dictionary used for spell-checking. This allows you for example to use a frequency dictionary that will show in first place the most used words.
- smash characters
: Allows you to identify characters with accents in some languages. For example for French you can set
"smash characters": ["eéèêë", "aàâä", "cç", "iîï", "oôö", "uùûü", "yÿ"]
and then when you type “lecon” it will suggest you “leçon”.
- numeric shortcuts
: Change the way auto complete behaves. All the choices are numbered and pressing a number select the corresponding completion. If you use this setting you should probably set maximum results
to less than 10.
- dictionary symbol
: Is the symbol displayed on the right that is by default 🕮
. You can choose for example one of the Unicode book symbols: 📒
, 📓
, 📔
, 📕
, 📖
, 📗
, 📚
, 📜
, 🕮
.
- reset on every key
: [experimental] By default ST do not refresh the auto-completion list on every key press.To overcome this we can force completion list refresh by first hiding then showing it. This is done when this setting is set to true
(by default it is false
).
Commands
Two commands are added in the Command Palette (Ctrl+Shift+P):
- Dictionary Auto Complete: Toggle
: Activate/deactivate this plug-in.
- Auto Complete: Toggle
: Activate/deactivate the sublime auto-completion.
License
Dictionary Auto-Complete for Sublime Text 2/3 Copyright © 2013 Florian Zinggeler Copyright © 2018 Kroum Tzanev
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/.