View Single Post
Old 06-30-2021, 04:34 AM   #114
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
New question: Is count reserved and not for variables? It turned blue.
count is a built-in function which is why the template tester highlights it as it does. Using function names as variables works, but I really don't recommend it. I don't remember if there are places where the formatter checks whether it is a function when used in the context of a variable. I also can't guarantee that the behavior won't change.

Real reserved words such as 'if' and 'for' cannot ever be used as variables.
Quote:
As a sidenote, I finally realized that if I use enter on the composite column and open the editor directly without going through the "add column" dialog I don't have to restart Calibre.
I really never mentioned that? I implemented that years ago to avoid the restart. Do note that this "edit cell" method still changes last_modified for every book.

I use F2 because I use enter to edit metadata.
chaley is offline   Reply With Quote