Define which snippets should be included in the autocomplete math
Closed, ResolvedPublic

Description

We need to define which autocompletions should be suggested when the editor is inserting a formula, so @falitjain should tell @mbonanomi or @liguorisofia which file needs to be modified and how. On the other side the editors can create a page where they document all the math autocompletions that will be present in the visualeditor

The discussion is following from T2968

Ok.. I had started the discussion with @mbonanomi .. The following is the file :

https://github.com/Falit/CodeEditor/blob/master/modules/ace/ext-language_tools.js

Line 1800-1854

davidev updated the task description. (Show Details)Jun 29 2016, 9:06 AM

Ok, @mbonanomi and @danielepannozzo and @liguorisofia can you make a list of which commands should we insert? Or can you make a list of which commands should we remove from the autocompletion list?

The problem is that i have included the autocompletions that sharelatex uses .

https://github.com/sharelatex/web-sharelatex/blob/83ef761ec9402ac56ada05bfd1abc4460a710340/public/coffee/ide/editor/directives/aceEditor/auto-complete/SnippetManager.coffee

But , our math texvc and displaying formula :
https://meta.wikimedia.org/wiki/Help:Displaying_a_formula

Allows , only the above tags to be recognized. That's why we have a problem when \begin{gather} is used.

davidev added a comment.EditedJul 1 2016, 9:41 AM

you have to remove the tags not supported. Please try all out and DOCUMENT the supported tag on the page on meta that @mbonanomi will tell you.

mbonanomi added a comment.EditedJul 1 2016, 10:18 AM

The problem is that i have included the autocompletions that sharelatex uses .

https://github.com/sharelatex/web-sharelatex/blob/83ef761ec9402ac56ada05bfd1abc4460a710340/public/coffee/ide/editor/directives/aceEditor/auto-complete/SnippetManager.coffee

But , our math texvc and displaying formula :
https://meta.wikimedia.org/wiki/Help:Displaying_a_formula

Allows , only the above tags to be recognized. That's why we have a problem when \begin{gather} is used.

Sure, the problem you have to face in doing what you are trying to do is that not all LaTeX commands/environments are supported. The list I've prepared consists only of mediawiki supported tags

Here you can find the list of commands we'd like to be implemented in the autocompletion feature: https://docs.google.com/document/d/1kf6V8qBkywg--r4Bkc0Ukvfp00BTMseEr4y6NDJ8P_o/edit?usp=sharing
While here you can find a list of not supported tags/commands: http://meta.wikitolearn.org/Contents_review:_not_supported_commands

@mbonanomi .. Thanks a lot.. would try to embed these autocompletions.

ire.c closed this task as Resolved.Aug 27 2016, 8:49 AM