From c051316aacddc7b389a6fe5bff811e6967cec6b0 Mon Sep 17 00:00:00 2001 From: Nate Stemen Date: Thu, 16 Nov 2017 14:45:20 -0500 Subject: [PATCH] adding deleted file --- .../auto-complete/PackageManager.coffee | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/PackageManager.coffee diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/PackageManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/PackageManager.coffee new file mode 100644 index 0000000000..b79b0d9426 --- /dev/null +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/PackageManager.coffee @@ -0,0 +1,42 @@ +define () -> + packages = [ + 'inputenc', 'graphicx', 'amsmath', 'geometry', 'amssymb', 'hyperref', + 'babel', 'color', 'xcolor', 'url', 'natbib', 'fontenc', 'fancyhdr', + 'amsfonts', 'booktabs', 'amsthm', 'float', 'tikz', 'caption', + 'setspace', 'multirow', 'array', 'multicol', 'titlesec', 'enumitem', + 'ifthen', 'listings', 'blindtext', 'subcaption', 'times', 'bm', + 'subfigure', 'algorithm', 'fontspec', 'biblatex', 'tabularx', + 'microtype', 'etoolbox', 'parskip', 'calc', 'verbatim', 'mathtools', + 'epsfig', 'wrapfig', 'lipsum', 'cite', 'textcomp', 'longtable', + 'textpos', 'algpseudocode', 'enumerate', 'subfig', 'pdfpages', + 'epstopdf', 'latexsym', 'lmodern', 'pifont', 'ragged2e', 'rotating', + 'dcolumn', 'xltxtra', 'marvosym', 'indentfirst', 'xspace', 'csquotes', + 'xparse', 'changepage', 'soul', 'xunicode', 'comment', 'mathrsfs', + 'tocbibind', 'lastpage', 'algorithm2e', 'pgfplots', 'lineno', + 'graphics', 'algorithmic', 'fullpage', 'mathptmx', 'todonotes', + 'ulem', 'tweaklist', 'moderncvstyleclassic', 'collection', + 'moderncvcompatibility', 'gensymb', 'helvet', 'siunitx', 'adjustbox', + 'placeins', 'colortbl', 'appendix', 'makeidx', 'supertabular', 'ifpdf', + 'framed', 'aliascnt', 'layaureo', 'authblk' + ] + + packageSnippets = for pkg in packages + { + caption: "\\usepackage{#{pkg}}" + snippet: "\\usepackage{#{pkg}}" + meta: "pkg" + } + + packageSnippets.push { + caption: "\\usepackage{}" + snippet: "\\usepackage{}" + meta: "pkg" + score: 70 + } + + class PackageManager + getCompletions: (editor, session, pos, prefix, callback) -> + console.log '>> making it here' + callback null, packageSnippets + + return PackageManager