From 22d2ff15189dc3d02d3a01c65046b19a39bcd668 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Sat, 30 Nov 2024 14:18:20 +0800 Subject: [PATCH] feat: added command shortcuts for new topic input --- src/renderer/src/i18n/locales/en-us.json | 2 +- src/renderer/src/i18n/locales/ru-ru.json | 2 +- src/renderer/src/i18n/locales/zh-cn.json | 2 +- src/renderer/src/i18n/locales/zh-tw.json | 2 +- src/renderer/src/pages/home/Inputbar/Inputbar.tsx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 1bd18baa..f7898682 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -89,7 +89,7 @@ "topics.export.image": "Export as image", "topics.export.md": "Export as markdown", "topics.export.word": "Export as Word", - "input.new_topic": "New Topic", + "input.new_topic": "New Topic {{Command}}+N", "input.topics": " Topics ", "input.clear": "Clear", "input.new.context": "Clear Context", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index f6ca46b6..8f71147d 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -89,7 +89,7 @@ "topics.export.image": "Экспорт как изображение", "topics.export.md": "Экспорт как markdown", "topics.export.word": "Экспорт как Word", - "input.new_topic": "Новый топик", + "input.new_topic": "Новый топик {{Command}}+N", "input.topics": " Топики ", "input.clear": "Очистить", "input.new.context": "Очистить контекст", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 6671aa6e..727894f9 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -89,7 +89,7 @@ "topics.export.image": "导出为图片", "topics.export.md": "导出为 Markdown", "topics.export.word": "导出为 Word", - "input.new_topic": "新话题", + "input.new_topic": "新话题 {{Command}}+N", "input.topics": " 话题 ", "input.clear": "清空消息", "input.new.context": "清除上下文", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 32c2ba8b..3d1d920c 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -89,7 +89,7 @@ "topics.export.image": "匯出為圖片", "topics.export.md": "匯出為 Markdown", "topics.export.word": "導出為 Word", - "input.new_topic": "新話題", + "input.new_topic": "新話題 {{Command}}+N", "input.topics": " 話題 ", "input.clear": "清除", "input.new.context": "清除上下文", diff --git a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx index 763559db..457965ca 100644 --- a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx +++ b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx @@ -8,7 +8,7 @@ import { QuestionCircleOutlined } from '@ant-design/icons' import { PicCenterOutlined } from '@ant-design/icons' -import { documentExts, imageExts, textExts } from '@renderer/config/constant' +import { documentExts, imageExts, isMac, textExts } from '@renderer/config/constant' import { isVisionModel } from '@renderer/config/models' import db from '@renderer/databases' import { useAssistant } from '@renderer/hooks/useAssistant' @@ -322,7 +322,7 @@ const Inputbar: FC = ({ assistant, setActiveTopic }) => { /> - +