1import { index } from "../../cache/data";
2import FuzzySearch from "fuzzy-search";
4export default (req, res) => {
5 const searcher = new FuzzySearch(index, ["title"], { sort: true });
6 const results = searcher.search(req.query.q);
8 res.setHeader("Content-Type", "application/json");
9 res.end(JSON.stringify({ results }));
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list