[txmt-dev] Extend autocompletion to work when the selection is in a word, and the match includes the rest of the word
Timothy Bates
timothy.c.bates at gmail.com
Mon Nov 19 16:58:27 UTC 2012
Hi all,
Posted this on the board, but may have missed the reply. Interested in other's thoughts too:
The idea to extend autocompletion to work when the selection is inside a word is great! Nice too that it knows that any selection is intended to be replaced.
But it could be better yet: Currently, if desired to replace "nrow" with "nRows" begin by selecting the [r] in nrow, the completion won't work properly: It will set the word to "nRowsow".
Why not make it that if a word is found which matches "(?<=n).*(?=ows)" then just the part from the selection forwards is replaced.
i.e.,if the look-back alone matches, then behave as now. But if both the look-back and the look-forward ahead of the selection match, then include the right hand side of the word in the replacement (and probably move the carat there).
Thoughts?
More information about the textmate-dev
mailing list