Coder Social home page Coder Social logo

codemirror-xquery's People

Contributors

angelozerr avatar rkistner 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codemirror-xquery's Issues

text-hover.js / scroll down main window error

Thanks for the great extensions! Particularly helpful is the expansion text-hover.js

Unfortunately, there is a strange behavior with the tooltips and I have not found a solution:

If the page downwards contains more content, and I scroll down a bit the main window, the tooltips no longer work. This behavior can also be observed in the demo (http://demo-angelozerr.rhcloud.com/CodeMirror-Java//xquery.html).

20160307-hover-tooltip-bug

I am thankful for every help...
...best regards!

Templates plugin - end template editing mode when user presses Ender or Tab on last var

Hi Angelo,

I think CodeMirror should provide templates and text hover features too.

One thing I want to know about templates is

it jumps between vars perfectly, I just want to change cursor position after last jump:

for (var index = 0; index < array.length; index++) {

}

It jumps to array var, When user presses Enter or Tab it should end template editing and jump to this pos:

for (var index = 0; index < array.length; index++) {
|
}

Maybe I just missing something.

Many thanks for help.

Best regards,
Boyan

Split generic addons and mode addon in several folder

Today there are codemirror-xquery folder which hosts the whole addons. It should be better to create this hierarchy :

codemirror-extended : "generic" extended addons like template completion, context info, etc
codemirror-xquery : xquery addons like xquery completion based on template completion
codemirror-javascript: javascript addons like javascript completion based on template completion + tern

HTML Autocomplete

Hello
Thanks for great extension for codemirror.
I have some basic problem while doing autocomplete. When tag have extra starting chr then pressing control + space is working but without extra chr it's not showing me autocomplete list. You can see in image. This is happning with all tags. Example: <ddiv, <aa, <fform....

1

Parse errors

file: codemirror-xquery/addon/templates-hint.js
line 136: var char = cm.getRange(cursor.to(), CodeMirror.Pos(cursor.to().line, cursor.to().ch + 1));
this line generate error: "Parse error. missing variable name"

Variable name char not allowed
Please change it to other

file: codemirror-extension/addon/hint/templates-hint.js
var completion = {
"className" : className,
"text" : label,
"template" : template,
};

this block of code generate error: "Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly"

autocomplete for property values?

Do you have any idea how to make an autocomplete for function parameters of type string? For example, I have a function getProperty with one parameter of type string. So there are many valid property names like 'cm:name', 'cm:title' or 'cm:modified' [getProperty("cm:name")]. How can I describe that via tern.js? I do not wanna create all kind of combinations (getProperty("cm:name" , getProperty("cm:title"), getProperty("cm:modified") in the json file.

Using template-hint.js with current CodeMirror?

I'm trying to use the template-hint.js in an arbitrary mode (prolog). I'm still pretty much new to
the CodeMirror code base. I have the impression though that template-hint.js does not work
with the current CodeMirror as hinting tools are now registered using registerHelper(). Stepping
through CodeMirror.showHint(), shows it steps through the helpers, cannot find the template
helper and gives up.

All I do is simply load template-hint.js and the css files, bind Ctrl-Space to "autohint" and define
this as

CodeMirror.commands.autohint = function(cm) {
    CodeMirror.showHint(cm, CodeMirror.templateHint, {async:true});
}

Anything trivial I'm missing, or does template-hint.js need rewriting?

P.s. appears that hinters are functions that return an object holding a list of completions, and
the from and to locations of what is completed. Is this a fundamentally different interface?

I think this post is relevant: https://groups.google.com/forum/#!topic/codemirror/cOc0xvUUEUU

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.