[SVN] BUG: Output Text not inserted at caret when input is Scope

Joachim Mårtensson joachimm at etek.chalmers.se
Fri Feb 8 18:26:55 UTC 2008


> The result text is not inserted at the caret for a command whose input
> is Scope. This makes the code completion for Erlang I am creating much
> more difficult to implement. I can get the completions but the result
> from the tm_dialog gets inserted at the end of the scope instead of at
> the caret where I would expect it to show up.
>
> _______________________________________________
> textmate-dev mailing list
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
>

Are you sure you need to use the scope instead of just the current line?
If you do need to use the scope you can look at how this is solved in the
objective-c completion commands which also takes scope as input. The code
is in ruby but you probably get the gist of it ;).

Joachim Mårtensson




More information about the textmate-dev mailing list