This is a bash script I wrote:
https://gitlab.com/christosangel/magic-tape
As far as searches go:
s option: Search using a keyword/phraseh option: Watch historyj option: Search history
If I understand correctly, in your case: let's say you search for a term , i.e. vanillaOS. You will be able to select from a list of videos, with a preview image and other data ( data, views, channel etc).
If on a later date you wish to search again for this term, by selecting the j option, you can easily repeat the same search, with any new videos available included.

Well, there is just one
themes.txtfile, created inside.config/basht/directory. There is no particular reason why it should not be a.txt. Would you suggest another solution?