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.