IEEE-VIT / templa-rs

One-Stop Solution for all boilerplate needs!
MIT License
28 stars 22 forks source link

feat: added live search bar #32

Closed Daemondeal closed 2 years ago

Daemondeal commented 2 years ago

I've added a live search bar: if you type in it, the results shown will be filtered by what you write. By default, it filters by name. If you type tag:TAGNAME, separated by a whitespace, it filters all results by that tag (e.g., if you type php tag:backend, as of now it will show only basic-php-project-structure. It also works as tag:backend php, order does not matter). As a result of this, to close the program now you type Control-C, not q anymore (As it is used by the search bar). If you give it multiple tags, it searches every entry that has at least one of them. Also, the -t TAGNAME command now adds tag:TAGNAME as the first query, while a new -q QUERY command searches for QUERY at the start. To improve on this, in the future maybe we can implement a cursor. This resolves #4

mintbomb27 commented 2 years ago

Thanks a lot again!! Merging it.