Code: Select all
$input = input(Search by Label | Tags | Comment (Separate by | )<crlf>Example: Email | sale report |Maria (leave blank to view all tags database),"Case insensitive, removed leading & trailing spaces and |<crlf>Tags in use: " . getkey("TagsList", "Settings"),|,s,,300,10);
$Label = "lbl:" . gettoken($input,1, "|") . "*";
$Tags = " AND tags:" . gettoken($input,2, "|") . "*";
$Comment = " AND cmt:" . gettoken($input,3, "|") . "*";
$Search = "*?:" . $Label . $Tags . $Comment;
goto "$Search"
Besides, leave the input dialog blank to view all tag database.
Update: Totally rewirte: Use gettoken to simpplify