Skip to content

Commit 0dd5815

Browse files
jetyuJet
andauthored
Enhance settings management and add support for new AI providers (#281)
## Summary - ## Type of Change - [ ] Bug fix - [ ] Feature - [ ] Documentation - [ ] Refactor - [ ] Build, CI, or release - [ ] Other ## Related Issues Closes # ## Changes - ## Testing - [ ] `npm run build:main` - [ ] `npm run build:preload` - [ ] `npm run typecheck` - [ ] `npm run lint` - [ ] `npm run test:unit` - [ ] `Not run` ## Checklist - [ ] I kept this pull request focused and avoided unrelated refactors. - [ ] I followed the Electron layer boundary: Renderer → Preload/Bridge → Main. - [ ] I validated IPC input at the boundary when applicable. - [ ] I avoided `any`, `@ts-ignore`, and unnecessary `@ts-expect-error`. - [ ] I updated Simplified Chinese locale files for new or changed user-visible UI text. - [ ] I updated documentation when behavior, setup, or user-facing functionality changed. - [ ] I considered privacy, security, and user-data impact. --------- Co-authored-by: Jet <jetyu91@163.com>
1 parent f66e5ec commit 0dd5815

25 files changed

Lines changed: 1345 additions & 1102 deletions

File tree

‎docs/Changelog/history_cn.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### 优化
66
* 优化用户功能权限
77
* 优化首选项配置
8+
* 优化搜索笔记体验
89
#### 修复
910
* 修复收藏列表最后修改时间未实时更新问题
1011
* 修复笔记列表光标位置异常问题

‎electron/assets/locales/de-DE.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "Starten Sie eine Q&A nach Eingabe einer Frage",
570570
"search.noResultsSemantic": "Keine verwandten Notizen gefunden. Bitte stellen Sie sicher, dass der Wissensdatenbank-Index aktualisiert ist, oder versuchen Sie es mit anderen Schlüsselwörtern.",
571571
"search.pressEnterToSelect": "Mit ↑↓ auswählen, mit der Eingabetaste die Notiz öffnen",
572-
"search.quickPlaceholder": "Notizen schnell finden...",
572+
"search.quickFindPlaceholder": "Notizen schnell finden...",
573573
"search.recentConversations": "aktuelle Aufzeichnungen",
574574
"search.searchNote": "Notizen suchen",
575575
"search.semanticHint": "Intelligente Wissensdatenbank-Suche basierend auf semantischem Vektorverständnis zur präzisen Suche verwandter Notizen",

‎electron/assets/locales/en-US.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@
548548
"search.agentWriteModeAutoDescription": "Allows agents to create or update notes directly within a task",
549549
"search.agentWriteModeConfirm": "Confirm execution",
550550
"search.agentWriteModeConfirmDescription": "Only writing suggestions are generated and will be executed after your confirmation.",
551+
"search.clearHistory": "Clear History",
551552
"search.inputModeAgentTask": "Agent Tasks",
552553
"search.inputModeAgentTaskDescription": "Plan tasks and call tools to complete them",
553554
"search.inputModeLabel": "Choose AI working mode",
@@ -569,7 +570,8 @@
569570
"search.newKnowledgeChatPreview": "Start Chat after asking a question",
570571
"search.noResultsSemantic": "No related notes found, please confirm knowledge base index is updated or try using different keywords",
571572
"search.pressEnterToSelect": "Use ↑↓ to select, Enter to open note",
572-
"search.quickPlaceholder": "Quickly find notes...",
573+
"search.quickFindPlaceholder": "Quickly find notes...",
574+
"search.quickHistory": "Search History",
573575
"search.recentConversations": "Recent Conversations",
574576
"search.searchNote": "Search Notes",
575577
"search.semanticHint": "Knowledge base intelligent retrieval based on vector semantic understanding, accurately matching related notes",

‎electron/assets/locales/es-ES.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "Iniciar Q&A después de ingresar una pregunta",
570570
"search.noResultsSemantic": "No se encontraron notas relacionadas. Confirme que el índice de la base de conocimiento está actualizado o intente buscar con diferentes palabras clave.",
571571
"search.pressEnterToSelect": "Use ↑↓ para seleccionar y pulse Intro para abrir la nota",
572-
"search.quickPlaceholder": "Buscar notas rápidamente...",
572+
"search.quickFindPlaceholder": "Buscar notas rápidamente...",
573573
"search.recentConversations": "registros recientes",
574574
"search.searchNote": "Buscar nota",
575575
"search.semanticHint": "Búsqueda inteligente de la base de conocimiento basada en la comprensión semántica vectorial, para una coincidencia precisa de notas relacionadas",

‎electron/assets/locales/fr-FR.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "Commencez une Q&A après avoir saisi une question",
570570
"search.noResultsSemantic": "Aucun résultat pertinent trouvé. Veuillez vérifier si l'index de la base de connaissances est à jour ou essayez d'autres mots-clés",
571571
"search.pressEnterToSelect": "Utilisez ↑↓ pour sélectionner, Entrée pour accéder à la note",
572-
"search.quickPlaceholder": "Rechercher rapidement des notes...",
572+
"search.quickFindPlaceholder": "Rechercher rapidement des notes...",
573573
"search.recentConversations": "enregistrements récents",
574574
"search.searchNote": "Rechercher une note",
575575
"search.semanticHint": "Recherche intelligente basée sur la compréhension sémantique vectorielle pour une correspondance précise des notes",

‎electron/assets/locales/id-ID.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "Mulai tanya jawab setelah memasukkan pertanyaan",
570570
"search.noResultsSemantic": "Tidak ada catatan terkait ditemukan, harap konfirmasikan bahwa indeks basis pengetahuan sudah diperbarui atau coba gunakan kata kunci yang berbeda",
571571
"search.pressEnterToSelect": "Gunakan ↑↓ untuk memilih, lalu tekan Enter untuk membuka catatan",
572-
"search.quickPlaceholder": "Temukan catatan dengan cepat...",
572+
"search.quickFindPlaceholder": "Temukan catatan dengan cepat...",
573573
"search.recentConversations": "catatan terkini",
574574
"search.searchNote": "Cari Catatan",
575575
"search.semanticHint": "Pencarian basis pengetahuan cerdas berdasarkan pemahaman semantik vektor, mencocokkan catatan terkait dengan presisi",

‎electron/assets/locales/it-IT.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "Inizia Q&A dopo aver inserito una domanda",
570570
"search.noResultsSemantic": "Nessuna nota rilevante trovata. Verifica l'indice o prova altre parole chiave.",
571571
"search.pressEnterToSelect": "Usa ↑↓ per selezionare e Invio per aprire la nota corrispondente",
572-
"search.quickPlaceholder": "Trova rapidamente le note...",
572+
"search.quickFindPlaceholder": "Trova rapidamente le note...",
573573
"search.recentConversations": "registrazioni recenti",
574574
"search.searchNote": "Cerca nelle note",
575575
"search.semanticHint": "Ricerca intelligente basata sulla semantica vettoriale",

‎electron/assets/locales/ja-JP.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
"label.knowledgeCopilot": "ナレッジベース検索",
287287
"label.knowledgeCopilotAgentChatModel": "Knowledge Agent モデルサービス",
288288
"label.knowledgeCopilotAutoIndex": "自動インデックス",
289-
"label.knowledgeCopilotChatModel": "Q&A 用モデルサービス",
289+
"label.knowledgeCopilotChatModel": "Knowledge Ask モデルサービス",
290290
"label.knowledgeCopilotChunkOverlap": "チャンクのオーバーラップ",
291291
"label.knowledgeCopilotChunkSize": "テキストチャンクサイズ",
292292
"label.knowledgeCopilotEmbeddingModel": "埋め込みモデルサービス",
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "質問を入力して Q&A を開始",
570570
"search.noResultsSemantic": "関連するノートが見つかりませんでした。ナレッジベースのインデックスが更新されているか確認するか、別のキーワードで再検索してください",
571571
"search.pressEnterToSelect": "↑↓ で選択し、Enter で該当ノートを開く",
572-
"search.quickPlaceholder": "ノートをすばやく検索...",
572+
"search.quickFindPlaceholder": "ノートをすばやく検索...",
573573
"search.recentConversations": "最近の会話",
574574
"search.searchNote": "ノートを検索",
575575
"search.semanticHint": "ベクトルによる意味検索を使用して、関連するノートを高精度に検索します",

‎electron/assets/locales/ko-KR.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "질문을 입력하여 대화를 시작하세요.",
570570
"search.noResultsSemantic": "관련 노트를 찾지 못했습니다. 지식 베이스 인덱스가 최신 상태인지 확인하거나 다른 키워드로 다시 검색해 보세요.",
571571
"search.pressEnterToSelect": "↑↓ 키로 선택하고 Enter 키로 노트를 엽니다",
572-
"search.quickPlaceholder": "노트 빠르게 찾기...",
572+
"search.quickFindPlaceholder": "노트 빠르게 찾기...",
573573
"search.recentConversations": "최근 기록",
574574
"search.searchNote": "노트 검색",
575575
"search.semanticHint": "벡터 시맨틱 검색으로 지식 베이스에서 관련 노트를 정확하게 찾습니다.",

‎electron/assets/locales/pt-BR.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
"search.newKnowledgeChatPreview": "Iniciar Q&A después de ingresar uma pregunta",
570570
"search.noResultsSemantic": "No se encontraron notas relacionadas. Confirme que el índice de la base de conocimiento está actualizado o intente buscar con diferentes palabras clave.",
571571
"search.pressEnterToSelect": "按 ↑↓ 上下键选择,回车键跳转相应笔记",
572-
"search.quickPlaceholder": "Buscar notas rápidamente...",
572+
"search.quickFindPlaceholder": "Buscar notas rápidamente...",
573573
"search.recentConversations": "registros recentes",
574574
"search.searchNote": "Buscar nota",
575575
"search.semanticHint": "Búsqueda inteligente de la base de conocimiento basada en la comprensión semántica vectorial, para una coincidencia precisa de notas relacionadas",

0 commit comments

Comments
 (0)