3 ms·
How can I select a block of code in vim and pass it to this? Maybe I should build a vim plugin for this with ChatGPT.
by braindead_in 4y ago
How can I select a block of code in vim and pass it to this? Maybe I should build a vim plugin for this with ChatGPT.
- baq 4y agoif it supports stdin and stdout, try :'<,'>!promptr -m gpt4 -t refactor -p "Cleanup the code"
- deathmonger5000 4y agopromptr doesn't support stdin in this way, but this is a great reason to make it do so.