Adds a search box to the top of the spellbook which filters the spells by name.
Also reorders spells with unbound first, alphabetically left to right instead of top to bottom.
Please be aware that this could potentially break the spellbook, so use at your own risk. It shouldn't, but it might.
0.3 - Fixed it so you can use special characters in the search box without it breaking. Also puts "see trainer" spells first now.
0.2 - Completely rewrote the addon because the previous version prevented you from casting directly out of the spellbook.
The search code creates 5 tables every time it is called. Wouldn't it be better to change the scope of those tables to the file scope and wipe the tables each time the function gets called?
The search code creates 5 tables every time it is called. Wouldn't it be better to change the scope of those tables to the file scope and wipe the tables each time the function gets called?
Yeah, it's not very efficient and I'll probably clean it up but it shouldn't be called often enough for that to be much of an issue.
There are a few other things I could do to improve its performance but that's usually the last thing I approach unless it's causing problems.