qascade / yast

Yet Another Streaming Tool
BSD 3-Clause "New" or "Revised" License
33 stars 10 forks source link

feat(tui): implement query history and model to render for the same. #31

Open qascade opened 2 years ago

qascade commented 2 years ago

We need to implement query history for users to directly choose magnets, they searched for previously.

Acceptance Criteria:

  1. No Duplicate Entries in the registry.
  2. Filter support for search based on name
  3. Add simple command to print out top queries searched recently and give options to choose and run the same.
qascade commented 2 years ago

Already Implemented ListModel can be used to display the stored query-history results. Store the query-history results in any data serialization file(json/yaml) and put it in $HOMEDIR/.yast. Try to use the already implemented functions to minimize code repetition. Also, add the ability to clear history by adding a history-clear command to CLI.