FlowFuse / FlowFuse/node-red-function-gpt

Insert at Cursor

未关闭
#11 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
size:S type:feature
主要语言
HTML
星标
31
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

### 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

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
html
领域
frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。