Code Monkey home page Code Monkey logo

dictionaryautocomplete's People

Contributors

kpym avatar nwind avatar zinggi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dictionaryautocomplete's Issues

Auto completion not working in ST3

I installed this package in ST3 on OSX 10.9, but it is not working. I press ctrl+space, but always get the message "No available completion".

Hunspell UTF8 dictionaries not supported?

dictionaries baring appended endings such as /S , /M , /DGS , /GS dont seem to be supported.
Words that are appended place a CR at the end of the words. Is there a way to fix this?
the dictionary used in this case is titoBouzout/Dictionaries

Feature Request: Delay for the pop up to appear

I like the functionality of the plugin. But the pop up is a little distracting when I am writing for a while. Is there any way to build in a delay for the pop up to appear? If I am typing and stop for a period of time (say, 5 seconds), the pop up appears.

Is that possible?

Capitalization

Great plugin!

A minor issue: when I type something like "Histo" and hit tab, it'll become lower case "history". Is there a way to make it case sensitive in this kind of scenario? I often need to re-capitalize it... Thanks!

exceedingly weird auto-completion for en_GB

This can not really be explained, only shown ;-) Please copy-paste the below instructions into a new document and follow the steps. I used ST3b3083 with the en_GB dictionary on both Win7 64bit and Mac OS X 10.11.1. The behavior described below stops only when I disable/remove DictionaryAutoComplete.

- 1a) move cursor in front of hyphen; 1b) press tab => inserts tab
    - 2a) move cursor between tab and hyphen; 2b) press tab => auto-completion replaces hypen with 1st word in dictionary (use-defined 
 - 3) same effect with whitespace(s) instead of tab before hyphen

I hope whichever dictionary you use to test this has a less extreme word at the top than the one I noticed this bug with (en_GB) ;->

Only add dictionary entries on specific syntaxes

Is there any way to make this plug-in only add dictionary entries to the completions on specific syntaxes?

I find DictionaryAutoComplete very useful, but I tend not to really need it when editing source files, as opposed to documentation (e.g. Markdown, Plain Text).

Feature request: add addtiional keystroke gutter in the dropdown menu

Hi,
I think that it would be better if you add the numbering or character navigation for the dropdown menu for example, I puting in "type"

typ

1.type
2.typeahead
3.typecast
4.typedef
5...
..
0..
F1.
F2.

F3....

this should appear alike DiCOM or PhraseExpress program behaviors which are not available on linux.
Basically from 1-0, F1 - F12, we have ability to navigate through 22 option in the dropdown menu faster than normal a little bit. I know sublimetext has shortcuts but sometime not convenient in these cases.

As above if I want to type "typeahead", i can press "2".

Thanks for considering this request.

TN

activate on plain text

I would like to make DictionaryAutoCompletion always active on plain text files.
What i need to modify in /DictionaryAutoComplete.py file ?

Inefficient lookup structure

Relevant code:

    def get_autocomplete_list(self, word):
        autocomplete_list = []
        # filter relevant items:
        for w in self.word_list:

It is obvious that the simple list structure used here is hugely inefficient. A suffix tree would have much lower lookup complexity and would not drag down the editor - autocompletion feels laggy on less than cutting edge machines and in high load environments.

Feature request: Add shortcut keys for autocomplete

Hi Zinggi,

I like this plugin very much.

Could you implement a fuzzy word completion such let us dont have to type "Complete" instead it show:

  1. "ComPlete" (pressing "P" to complete") or "CompletE" -> pressing E to enter "Complete" or
  2. "Complete" -----> 1 (Press 1 to choose)
    "Completed" ----> 2
    "Completely" ----> 3 (Press 3 to choose, etc) or
    ===> show a list of 10 item from 0 to 94
  3. "Complete" -----> a (Press a to choose, any letter that does not exist in "complete")
    "Completed" ----> b
    "Completely" ----> d (Press d to choose, etc) or
    ===> show a list of a to z of item of completion
    I think that this add extra speed for the typing.
    Any idea?

Thanks!

Doesn't work

The plugin doesn't work for me at all. I tried to use English dictionary (set and not set in User prefs) as well as Russian (UTF-8), they work well in spell checking, but do not appear in autocomplete menu.
I also tried to remove all autocomplete-related settings from User prefs (auto_complete, auto_complete_delay, auto_complete_selector), but still no success. Tried to put

"auto_complete_selector": "source, text"
line.
I usually write in Markdown, but in plain text or any other mode it doesn't work too.
Could you please recommend something?

No accent folding?

English is pretty exceptional in not requiring any accents. German, French, Spanish, they all require accents. But it seems that currently the plugin does no accent folding (it does case folding however).

For the plugin to work with languages besides English, “Théâtre” (note the accents) should be suggested when writing “Theatre” (note the absence of accents) if the proper dictionary is installed (French in this case). In other words, it has to do some degree of accent folding, otherwise it is not really useful as autocompletion in those languages.

Looking through the source, it seems like there is some case folding already going on in get_autocomplete_list on line 59: if word.lower() in w.lower() :. So might be as easy as swapping .lower() with an accent folding function. Google suggested unidecode. I suppose the words collection could be stored in a hash-like structure with the folded word as key and the real world as value for better performance, somewhere in load_completions.

But then again, I know squat about Python :)

launch error

I have installed the package and each time I launch Sublime Text the following error message is thrown up:

"Error trying to parse settings: Unexpected character, expected a comma or closing bracket in Packages/User/DictionaryAutoComplete.sublime-settings:3:4"

I have not made any changes to this file.

The functionality after dismissing the error is good, i.e the package works as expected, but it is annoying to have the error message pop-up each time and I was wondering if there is a simple fix.

Thanks for your time

Murray

always suggests numbers after "=" or "-"

Thank you very much for the nice plugin. It's very useful.

I encountered a problem. I always enable the autocomplete in markdown. But when I input "=" or "-", the autocomplete window always suggest me some numbers. Could you please help solve this problem?

pasted_image_04_02_15_17_44

UTF-8

change encoding don't seem to works:
I use french dictionary and when I start typing "ré" it suggest thinks like "récréation"

It don't works with ISO-8859-1, ISO-8859-15 or UTF-8

How to change hotkey

Is it possible to change Ctrl+Space combination to something another in config?
This one is already bound in OSX to spotlight.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.