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

建议增加批量导出聊天、合并聊天功能、修改聊天名称、聊天内容模糊搜索 #228

Open
SeasonPilot opened this issue Apr 16, 2023 · 10 comments
Labels
enhancement New feature or request
Milestone

Comments

@SeasonPilot
Copy link

SeasonPilot commented Apr 16, 2023

Describe the solution you'd like
你期望的新功能实现方案

建议增加批量导出聊天、合并聊天功能、修改聊天名称、聊天内容模糊搜索
image

@SeasonPilot SeasonPilot changed the title 建议增加批量导出聊天、合并聊天功能 建议增加批量导出聊天、合并聊天功能、修改聊天名称、聊天内容模糊搜索 Apr 16, 2023
@josStorer
Copy link
Owner

👌

@josStorer josStorer added the enhancement New feature or request label Apr 17, 2023
@josStorer josStorer added this to the v3.0.x milestone Apr 18, 2023
@SeasonPilot
Copy link
Author

可以优先实现下 批量导出聊天 功能吗?刚需

@josStorer
Copy link
Owner

可以

josStorer added a commit that referenced this issue Apr 21, 2023
@josStorer
Copy link
Owner

v2.2.8 已加入导出功能

@SeasonPilot
Copy link
Author

v2.2.8 已加入导出功能

明天会更新 Chrome应用商店中 ChatGPTBox的版本吗?

@josStorer
Copy link
Owner

谷歌商店审核大概要三天,我已经提交了

@SeasonPilot
Copy link
Author

v2.2.8 已加入导出功能

导出的是 json 格式,不能和下载一样导出 markdown 吗

@josStorer
Copy link
Owner

目前的导出格式是为了同时方便未来的导入功能, 导出的json中的conversationRecords内容仍然是markdown的

目前你可以通过如下方式将导出数据转换成markdown:

  1. 打开浏览器控制台
  2. 输入并执行
const data = 复制导出的json的所有内容, 粘贴到此处
  1. 粘贴并执行
async function saveFile(exportData) {
  let output=""
  exportData.conversationRecords.forEach((data) => {
    output += `Question:\n\n${data.question}\n\nAnswer:\n\n${
      data.answer
    }\n\n<hr/>\n\n`
  })

  const blob = new Blob([output], { type: 'text/plain;charset=utf-8' })

  const newHandle = await window.showSaveFilePicker({
    types: [
      {
        description: "Markdown",
        accept: { "text/plain": [".md"] },
      },
    ],
  });
  const writableStream = await newHandle.createWritable();
  await writableStream.write(blob);
  await writableStream.close();
}
  1. 粘贴并执行即可保存为markdown, 其中方括号中间的0为你想要导出的对话的序号, 可改为其他
saveFile(data[0])

@xtzbeta
Copy link

xtzbeta commented May 15, 2023

修改聊天名称 大佬什么时候有空udpate下

@josStorer
Copy link
Owner

最近在忙别的项目

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

No branches or pull requests

3 participants