jdittrich / ep_autocomp Goto Github PK
View Code? Open in Web Editor NEWautocompletion for etherpad
autocompletion for etherpad
Is there a clean way to enable the autocompletion in the main settings.json, so that all users have the setting already enabled in their pads ?
Hello,
How to exactly enable autocomp for Etherpad? I already called npm install ep_autocomp when I am in etherpad-lite folder. When I navigate to etherpad-lite/node_modules/, I see a folder ep_autocomp in it. THen I restarted etherpad, but I don't see word suggestions, even with the text just typed. What am I missing? The documentation just mentioned to 'Enable under settings', I cannot find anything related to autocompletion in settings.json. Thank you.
What should happen: When clicking on a list entry, the corresponding autocomplete text should be inserted at cursor position
What happens: nothing
Reason:
Inserting text via sendkeys after mouseclick on a item throws a _TypeError: invalid 'in' operand ret.doc in ace2_common.js?callback=require.define. It seems to be connected to some focus stealing problem.
It's breaking Etherpad when installed with version 1.8.14.
Solution, please?
Thanks!
What should be possible:
configuring the autocompletion by editing a simple JSON or CSV file where the desired autocompletion style can be set.
The desired state should than be loaded from autocompletion-styles that are delivered with the plugin.
How it is now: a config-object in the code needs to be edited.
What I did: I wanted to autocomplete a word with had a long list of possible suggestions for an input (>10 suggestions). I wanted to select one at the end of the list.
What I expected: When I selected the bottom most entry of the entries currently shown in the scrollable list, I expected the list to scroll down as I select the next entry below
What happened: The highlighted/selected entry was shifted to the next item, but it was not visible since the list did not scroll with the selection.
oops. That small blueish line on the bottom is the barely visible next list entry.
Apologies for overly meaningless testing content a,aa,aaa…
I've seen that Ctrl+space closes the suggestions box. Was there any reason to not use ESC as shortcut to close suggestions box? Any concerns or risks?
tested version 1.7.5 and 1.8.0:
when the plugin gets invoked, the items in the list are marked with a * ... this * gets somehow written into the etherpad, in an unpredictable manner
What's the best way to do this? I want to fire
setAttributeOnLine(thisLineNumber, 'context', selectedValue);
The code in https://github.com/jdittrich/ep_autocomp/blob/master/static/js/autocomp.js
is messy.
It is commented, but the order of the functions does not make sense and the comments should be reviewed.
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.