Another productive lunch hour on #AuthorIntrusion while working on echo word detection.
I got it to correctly detect the same word used within a given range. With these plugin settings:
- scope: content
select: //token[@l>3]
within: 3
warning: 1
error: 2
And the file:
one two one three four one
It produces a warning on the first and third "one", an error on the second "one".
For xpath, I'll probably change it to `//token[length()>3]` because it's prettier.
Author Intrusion Show more
With the previous iterations of AI, I switched to write-novel/update-code look that was really useful. Of course, this was back when I wrote an entire damn text editor with customized keyword highlighting and auto-corrections.
I failed because I was basically trying to write Scrivner.
The more recent iteration is to write a focused tool (ala `git`), and then integrated it into other tools (e.g., Atom, Emacs, VS Code) to handle everything else.