CodeMirror-XQuery icon indicating copy to clipboard operation
CodeMirror-XQuery copied to clipboard

CodeMirror extension: addon/hint/Code snippets

Open as3boyan opened this issue 11 years ago • 6 comments
trafficstars

Stop jumping between variables on ${cursor}

Should do the job. I also modified additional files, like templates and I removed unused code, to make it easier for me to use.

The reason I had to put it in another repository is to make it work for Haxe mode in my IDE with minimal additional code. (I decided to stop using Tern in my IDE, because it's too complicated for me, and has too much JavaScript specific things, it's much easier to just use CM addons for it).

In your CodeMirror-XQuery demo, indentation works fine, in my Haxe mode, it's doesn't take in account it. Maybe you know how to fix it?

as3boyan avatar Mar 24 '14 17:03 as3boyan

Indentation issues fixed in 8a25f24.

as3boyan avatar May 04 '14 08:05 as3boyan

@angelozerr Hi, Angelo, could you please tell me how you managed to show small images in completion dialog (I don't need much detail, just want to know which additional changes I need to make it work for CodeMirror autocomplete demo for instance)?

as3boyan avatar May 04 '14 09:05 as3boyan

Never mind, I was able to do this.

as3boyan avatar May 04 '14 11:05 as3boyan

If I remember, I hd managed that CSS https://github.com/angelozerr/CodeMirror-XQuery/blob/master/codemirror-javascript/addon/hint/tern/tern-extension.css

angelozerr avatar May 04 '14 11:05 angelozerr

Thanks. I was able to find a CSS for template here(I am using CM without Tern) https://github.com/angelozerr/CodeMirror-XQuery/blob/master/codemirror-extension/addon/hint/templates-hint.css#L15

I am using your show-context-info and snippets addons in my IDE, they work really great, just one minor thing - show-context-info don't take in account scroll, but that should be easy to implement.

Similar to show it's implemented in show-hints https://github.com/marijnh/CodeMirror/blob/master/addon/hint/show-hint.js#L248

Probably I can implement this on my own.

as3boyan avatar May 04 '14 13:05 as3boyan

Also I think this line can be removed https://github.com/angelozerr/CodeMirror-XQuery/blob/master/codemirror-extension/addon/hint/templates-hint.js#L262.

It's just creates additional reference to same completion object. I can submit pull requests if you want.

as3boyan avatar May 04 '14 13:05 as3boyan