obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Would it be possible to add a direct insert into document button

Open lithStudy opened this issue 2 years ago • 3 comments

Would it be possible to add a direct insert into document button next to the message copy button? The primary use case is to insert AI-generated text into a document or replace selected text within the document. While copying and pasting using the copy button is feasible, having a dedicated insert button would greatly enhance convenience. Thank you!

lithStudy avatar Nov 13 '23 14:11 lithStudy

I see, it would require the plugin to remember the last cursor position in the note even when you are focused in the chat window. Adding this to the feature plan next.

logancyang avatar Nov 13 '23 18:11 logancyang

I see, it would require the plugin to remember the last cursor position in the note even when you are focused in the chat window. Adding this to the feature plan next.

If it is challenging to remember the last cursor position, maybe we could consider implementing a feature where, after selecting some text in the editor, we can activate a command that directly writes OpenAI's response at the current cursor location. There could be an option to either replace the selected text or append the response.

lithStudy avatar Nov 15 '23 12:11 lithStudy

It can refer to the implementation of the txt generator. One-time command-based dialogue can directly generate answers under the cursor and add callout syntax.

wwjCMP avatar Feb 08 '24 16:02 wwjCMP