4 ms·
I made this for fun after watching some breathless microsoft video about AI in VS code which amounted to autocomplete sorted by popularity. I told a friend I co
by irthomasthomas 5y ago
I made this for fun after watching some breathless microsoft video about AI in VS code which amounted to autocomplete sorted by popularity. I told a friend I could knock out something more useful (at the time) in half an hour. It's a ahk wrapper of howdoi designed to find code snippets from stack exchange and put them right into the code file you are editing. It is so simple but I actually found it pretty useful for learning new languages or for getting a quick reminder how to do that thing you don't use often.
https://github.com/irthomasthomas/helpmecode https://github.com/irthomasthomas/helpmecode
- oezi 5y agoCan you explain what it searches for? Is it the 'I feel lucky' first code block from the first match of the search term? How does it know the language? Window title?
- irthomasthomas 5y agoI set it up with a autohotkey client and a python server. I did that because I am actually a linux user now and I intended to write a linux version later. The ahk client uses WinGetTitle to figure out which language you are working on. I wont lie, it is pretty cheap and dirty, but it works smoothly in vs code. The python server handles the search logic and it is mostly relying on the howdoi project which already did most of the work in this area. So I send a query to howdoi and that does a normal google search (or ddg/bing if you wish) and returns me the results which I further filter down to try and be more useful.