atmb4u / autojs Goto Github PK
View Code? Open in Web Editor NEWAuto complete plugin from dictionary with no external dependencies
Home Page: http://atmb4u.github.io/AutoJS
License: BSD 3-Clause "New" or "Revised" License
Auto complete plugin from dictionary with no external dependencies
Home Page: http://atmb4u.github.io/AutoJS
License: BSD 3-Clause "New" or "Revised" License
It would be great to be able to cycle through multiple matching suggestions for the completed string (like you can on a Unix shell when completing paths etc by pressing tab). Having only one suggestion per substring is a bit limiting...
Personally, I'd like to see the tab key cycle through the available/relavant suggestions, and then press right arrow to complete the word, but really I think the ideal would be to make a config map where the developer can define what keys do what (everyone seems to have a differnt idea of what is good UX, as per discussion on #1)
is this possible to so something like if i start the word with a particular symbol like #smile auto complete should not trigger.
thanks you for this awesome library. #madeinkerala
If I try to type in the box "I'm on my way", it immediately removes "I'm" and I'm left with " one my way". Maybe I don't understand how this is supposed to work, but normal typing is still an issue for this.
Si yo quieira agregar un listado de palabras, no tendria que modificar el core, me parece mejor que el diccionario de palabras este en un archivo separado.
saludos
The demo doesn't work on http://atmb4u.github.io/AutoJS/, because the url link for auto.micro.min.js is wrong.
"https://rawgithub.com/atmb4u/AutoJS/master/auto.micro.min.js"
should be
"https://raw.github.com/atmb4u/AutoJS/master/auto.micro.min.js"
Hi!
Can I make an pt-BR version of the words? I found this extremely useful, but here in Brazil we do not speak english by default. hahah :)
Tks
Neither Space nor Enter work, with Tab the focus goes outside the input box.
If I click on the suggestion, it gets inserted, but the text cursor jumps to the character closest to the mouse pointer.
I'm testing this in Chrome on Windows 7.
After typing "This is a test." hitting Ctrl-Z few times causes autocomplete to trigger on each undo event resulting eventually text to transform into "Theengntosuendhermt".
I was expecting autocompletes to be ingored on undos.
Hi,
Thank you very much for the code. I have question, is there possibility to highlight incorrect words to create custom string builder.
For example I want to build:
"Project is not interesting."
Where first three words are correct (taken from one dictionary), but word "interesting" would be blacklisted and highlighted.
Any advice?
example 👍 : keyword "chào bạn" , "thân yêu"
pls,how suggest key them.
When I release the 'A' key, my selection is removed.
Hi ,
I have downloaded rar file and try to include in .net mvc projects. Auto suggestion is working fine but red underline for wrong word is not working. whether I missed anything?
Also in the css link it has,
If I type "auto-complete", the output is "omplete"
Using FF 25.0.1 on Win XP 32.
If you type in the entire word "it's" (with the apostrophe), the word is changed to "said".
If the text is like The is
and I want to enter magazine in between the The and is then the cursor lost focus from the textarea and also doesnot give any suggestion
Is there any solution for that?
I am using this plugin for div contenteditable=true tag..
everything is working but when user press enter then it selection range doesnot work
here is the function:
function SelectChar(el, start, end) {
var div = el;
var textNode = div.firstChild;
if (textNode.data.length > 1) {
var rangeObj = document.createRange();
rangeObj.setStart(textNode, start);
rangeObj.setEnd(textNode, end);
selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(rangeObj);
}
}
any idea about that?
js code is
$(document).ready(function()
{
var oTextbox = new AutoSuggestControl("subjective");
})
html code
For summernote ###
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.