fix(clipboard): 修复浏览器右键复制图片时被识别为富文本的问题#1258
Open
Moeblack wants to merge 4 commits intoEcoPasteHub:masterfrom
Open
fix(clipboard): 修复浏览器右键复制图片时被识别为富文本的问题#1258Moeblack wants to merge 4 commits intoEcoPasteHub:masterfrom
Moeblack wants to merge 4 commits intoEcoPasteHub:masterfrom
Conversation
- Add FTS5 trigram full-text index for search (7~21x faster than LIKE) - Enable WAL journal mode for concurrent read/write - Add B-Tree indexes on createTime, group+createTime, favorite+createTime - Truncate value field in list queries (substr 500 chars) to avoid multi-MB text/HTML slowing down rendering - Add getHistoryFullValue() for on-demand full content retrieval - Add 200ms search input debounce to reduce query frequency - Fix stale search results overwriting newer results (fetchId mechanism) - Fix Windows false blur events causing hideWindow/autoClear regression (isFocused double-check) - Add image path resolution cache to avoid repeated disk I/O - Support VITE_ECOPASTE_TESTDATA_DIR for dev testing with isolated data Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- 启用 WAL journal 模式,实现读写并发(搜索时不阻塞剪贴板写入) - 添加 B-Tree 索引:createTime、group+createTime、favorite+createTime - 配合分页查询(ORDER BY createTime DESC LIMIT),索引可显著减少扫描行数 相关 issues:EcoPasteHub#467
fix: 当剪贴板同时包含 HTML 和 Image 时,如果 HTML 仅包含 <img> 标签或文本仅为 URL,优先识别为图片。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
useClipboard钩子中增加了对剪贴板内容的智能判断逻辑。<img>标签且无可见文本,或者原因
关联