rundis / lt-snippets

Snippets/templates support for Light Table
MIT License
12 stars 4 forks source link

"$0" is inserted instead of placing cursor there #21

Closed Trapets closed 9 years ago

Trapets commented 9 years ago

Hei Magnus!

LT 0.8.0-alpha on Manjaro 15.09 linux machine. When snippet is inserted, $0 is displayed also (picture).

LT colnsole error log:

Invalid behavior: :lt.plugins.snippets/complete-snippet

TypeError: snippet.contains is not a function at lt.plugins.snippets.BEHcomplete_snippet.BEHcomplete_snippetdelegate (/home/trapets/.config/LightTable/plugins/Snippets/snippets_compiled.js:756:36) at Function.lt.plugins.snippets.BEHcomplete_snippet.BEH__complete_snippet.cljs$lang$applyTo (/home/trapets/.config/LightTable/plugins/Snippets/snippets_compiled.js:787:8) at c (file:///opt/LightTable/resources/app/core/node_modules/lighttable/bootstrap.js:6194:66) at a (file:///opt/LightTable/resources/app/core/node_modules/lighttable/bootstrap.js:6236:18) at c (file:///opt/LightTable/resources/app/core/node_modules/lighttable/bootstrap.js:17774:76) at a (file:///opt/LightTable/resources/app/core/node_modules/lighttable/bootstrap.js:17808:18) at a (file:///opt/LightTable/resources/app/core/node_modules/lighttable/bootstrap.js:17819:34) at b (file:///opt/LightTable/resources/app/core/node_modules/lighttable/bootstrap.js:17823:14) at complete_snippet_form (/home/trapets/.config/LightTable/plugins/Snippets/snippets_compiled.js:283:24) at HTMLDivElement.eval (/home/trapets/.config/LightTable/plugins/Snippets/snippets_compiled.js:354:63)

lt-snip_bug

rundis commented 9 years ago

This should be fixed with version 0.1.1

Trapets commented 9 years ago

Yeah, it works.