Insert at Cursor

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
html
Domain
frontend

Research direction

Locate the UI code for the "Ask ChatGPT" button and the logic that populates the active tab, then inspect how the text area's cursor or selection is tracked. Done means a toggle allows the response to be inserted at the active cursor or last selection instead of replacing the entire tab contents.

Written by the indexing model from the issue text.

Description

size:S type:feature
Description

Currently, the response from the API populates the entire active tab contents, overwriting anything already present. It would be nice to have a toggle option alongside the "Ask ChatGPT" button that permits the response to "insert", rather than replace. This should insert at the position of the active cursor, or at least, the last place the cursor was selected in that text box, given that browser focus will be in the CHatGT text input, or on the "Ask ChatGPT" button.

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Dominant language
HTML
Stars
31
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FlowFuse/node-red-function-gpt

All issues in FlowFuse/node-red-function-gpt

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.