-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Serve results as an API #105
Comments
This is a super cool idea, but I haven't built an API before in rust, so this could take quite some time (or might need some external help on this). In the meantime, a roundabout way to do this could be to host this on github, then use the github search APIs to search within the repo. It's not quite as excellent of a search experience as the rust interface, but it could do. Related to #82. |
I have never coded rust but I would like to at least give it a go. I'm still reading and getting a full understanding of how whale works under the hood. |
Love it! @mporracindie Yeah the entire CLI interface is being done in rust, in cli/. I'll post a high-level overview for you to get started. :)
I think the key here is actually just to figure out how to either (a) open an API using the skim library, or (b) figure out a way to eagerly results from the search engine given a query. It may make sense to open an issue on lotabout's repo and see if he has any suggestions. :) Honestly, though, I imagine this might be quite a tricky project to tackle. It may make sense to join our slack channel to get more direct input from the wider community :) |
Just join the channel so we can maybe continue the conversation there but just so anyone else can read it I will post it here too. From this issue in skim we know that what is being used to match is actually fuzzy-matcher. I'll keep investigating and see what I can find/do. PS: just as a curiosity this seems to be the algorithm our loved sublime use to have in the past. (article) |
It would be really useful if we could mount this on a machine (or multiple) and allow the search to be done through an API.
This could allow for multiple use cases like building a frontend for the tool.
The text was updated successfully, but these errors were encountered: