Just updated from old (2019) version, howto question about API changes
BURN-MICROSUCK opened this issue · 1 comments
Been using this editor nearly every day for about 5 years now, finally decided to update to a more recent version. I'm in the process of adapting my old lua functions to work with the new version.
I had a nice "word highlight" function in my init.lua that i (vaguely) remember writing, this function is a handler for events.UPDATE_UI and uses the (seemingly now non-existent) API call textadept.editing.highlight_word (str) which simply causes all instances of str in the current window (not necessarily exactly 1 word with no punctuation) to be highlighted. What would be the equivalent of this in the current version? Does it still exist?
Another similar thing i've been trying to do, but failing, is each time the search text in the search/replace box is changed, highlight all instances of it in the same way (without changing current select range or cursor position) then disable highlighting / unhighlight when either of these two changes.