ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

Allow the ChatGPTEditWithInstructions command to accept a range

Open Akeboshiwind opened this issue 2 years ago • 5 comments

Fixes #29

Akeboshiwind avatar Jan 11 '23 20:01 Akeboshiwind

Lovely, have been waiting for this to be fixed for a while now, wondering how people have been managing to use ...WithInstructions without this...

ben-wall avatar Jan 12 '23 08:01 ben-wall

@DGmip If you want to get it working in the meantime, you can use a custom keybind that calls require("chatgpt").edit_with_instructions().

For an example look at my comment here.

Akeboshiwind avatar Jan 12 '23 09:01 Akeboshiwind

Nice one have done so

ben-wall avatar Jan 12 '23 09:01 ben-wall

LGTM!

aweis89 avatar Feb 25 '23 01:02 aweis89

Or just bind the key like this:

vmap <silent> <leader>aa :<C-U>:ChatGPTEditWithInstructions<CR>

kalkin avatar Mar 05 '23 16:03 kalkin

@jackMort why don't you merge this?

00sapo avatar Apr 08 '23 09:04 00sapo

@Akeboshiwind could you update the readme? Right now I inserted a mention to map the function

00sapo avatar Apr 08 '23 09:04 00sapo