3 ms·
In Vim, I tried to assign a shortcut to send the selected text to Phind (or any other LLM) and came up with this: :'<,'>y|call system('firefox <url>?q='.shelle
by mg 3y ago
In Vim, I tried to assign a shortcut to send the selected text to Phind (or any other LLM) and came up with this:
:'<,'>y|call system('firefox <url>?q='.shellescape(@*).' &')
The only problem left is that the text is not urlencoded.
There probably is some elegant way to urlencode it. But I did not come up with one yet.
- wizzwizz4 3y agohttps://stackoverflow.com/a/76488059 https://stackoverflow.com/a/76488059 claims to have one, though it's not explained.