We are trying to implement macros so we want to track the words as we type them
for example [T04000]
so on key down when we see [ we start recording
Then we listen for a ] and then whatever is in between we look up the code to get the text
Issue is that the code to find the current word no longer seems to work
we used
This would give us the current word AND the current line (so we can later replace the word)
This no longer works .. our current word always comes back as new line
We are using 2013 Q1 (not sp1 yet)
Any ideas?
(I will post also to support as this is urgent for me)
Thanks
for example [T04000]
so on key down when we see [ we start recording
Then we listen for a ] and then whatever is in between we look up the code to get the text
Issue is that the code to find the current word no longer seems to work
we used
editor.Document.CaretPosition.MoveToCurrentWordStart();
var word = editor.Document.CaretPosition.GetCurrentWord();
var thisLine = (Span)
this
.editor.Document.CaretPosition.GetCurrentInline()
This would give us the current word AND the current line (so we can later replace the word)
This no longer works .. our current word always comes back as new line
We are using 2013 Q1 (not sp1 yet)
Any ideas?
(I will post also to support as this is urgent for me)
Thanks