yast
yast copied to clipboard
feat(tui): implement query history and model to render for the same.
We need to implement query history for users to directly choose magnets, they searched for previously.
Acceptance Criteria:
- No Duplicate Entries in the registry.
- Filter support for search based on name
- Add simple command to print out top queries searched recently and give options to choose and run the same.
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.