View Single Post
Old 04-29-2023, 05:46 PM   #110
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,675
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
I want to show an icon if the data folder contains a file named todo.???? (might be ToDo.txt, TODO.EML, todo.stky, etc).

Something like extra_file_exists("todo.*") might be useful.

BR
Quote:
Originally Posted by chaley View Post
Code:
program:
	files = extra_file_names(':');
	in_list(files, ':', 'todo\..*', 'Yes', '')
EDIT: where 'Yes' would be the icon name
I see I forgot to thank you for this, so I'm doing it now. Thanks

It works of course but because I use the file manager to add/delete the file to/from the books data folder the column icon doesn't appear/disappear in real time.

Re-apply current sort (F5) doesn't do the trick, perhaps it could/should. Header menu->Restore default layout doesn't do it either. Apart from restart, the only way I've found to get the icon updated, is switching to another library and back again.

BR
BetterRed is offline   Reply With Quote