FWIW the template function isn't going to happen. Marks are stored in the "table view" abstraction layer in calibre, which is above the book metadata view that templates use. Because of this, templates cannot see the marks. This could be changed, but it is more work than I am willing to sign up for.
Are you suggesting that the entire line be subject to the selected highlighting, or just the row number? Instead of all that, I would rather put it as an icon on the header. Something like as shown in the attachment. It isn't hard to do, but I have no idea if Kovid would approve. I will ask him.
|