Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support selecting a prompt #2

Open
craftzdog opened this issue Apr 4, 2023 · 3 comments
Open

Support selecting a prompt #2

craftzdog opened this issue Apr 4, 2023 · 3 comments

Comments

@craftzdog
Copy link

To continue asking the AI in the same note, it'd be great to support specifying a prompt by selecting text in the note.

const noteBody = editingNote.body

You can easily get selection like so:

inkdrop.getActiveEditorOrThrowError().cm.getSelection()

wdyt?

@shubham8550
Copy link
Owner

ofc I originally wanted to do that but I wasn't able to find that in the docs
Thanks for pointing it out

@shubham8550
Copy link
Owner

Can you post link to docs so i can get more info on

 inkdrop.getActiveEditorOrThrowError()

@craftzdog
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants