Open nitinthewiz opened 8 years ago
I don't plan to add this feature since it's confusing in a few common situations. What if the last character(s) was already struck out? What if the last character was a newline or a space?
Anyway, if I did want to implement this, I'd insert some logic in this block to wrap the previously typed character in a 'struck out' span. You'll need to track how many times the delete key has been pressed in succession, and increase the number of characters wrapped inside the 'struck out' span as needed.
It seems like you know all the words you'll need to google to build this feature. Best of luck, and feel free to send me a link to your code.
Regarding your questions:
So, I've been trying to code this up myself and have hit a series of walls.
Essentially, pressing delete should start striking out characters previously written.
Problems I faced -
I have been hacking away at this script for a while now and have nothing to show for it. I would really, really like if you could please try to implement this because it's a really neat feature to have, instead of having to select text and then strike it through.
But other than that, thank you so much for this awesome and amazingly smart tool... :+1: :smiley: