makecindy / makecindy/cindy

Desktop 页内查找:逐字即触发搜索打断连续输入;页面无匹配仍显示 1/1

Open
#3,907 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

### 问题描述 / What happened

**复现环境**
Windows Desktop,包含 #3769 修复的构建(SHA `5b2803a…`)。

**现象**
任务页的页内查找(Ctrl+F)存在两处异常:
1. 在查找输入框输入字符即触发即时搜索/高亮,无法连续输入完整查询词;
2. 查询内容在当前页面不存在时,计数仍显示 `1/1`。

**期望行为**
- 输入过程中可连续键入(含中文组合输入),搜索在停顿或提交后触发
- 当前页面无匹配时应显示无结果(如 `0/0` 或「未找到」)

**实际行为**
- 输入第一个字符即触发查找/高亮,后续按键无法继续组成查询词
- 搜索词确实不存在于页面时计数仍为 `1/1`(查找框为空时不显示)

**已尝试**
- 确认搜索词在当前页面不存在,计数仍为 `1/1`
- 查找框为空时不显示 `1/1`,排除空态误报

### 环境 / Environment

- Cindy 版本或 commit / version or commit:0.1.73 (1.72时是好的)
- 平台与版本 / platform & OS version:windows

### 复现步骤 / Steps to reproduce

1. 打开任务页,按 Ctrl+F 打开页内查找
2. 在查找输入框连续输入一段查询词(先输入当前页面不含的词)
3. 观察输入过程与匹配计数

### 日志与截图 / Logs & screenshots

https://github.com/user-attachments/assets/754fae48-27be-47b6-b8b7-81126367e429

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue on Windows Desktop from the task page using Ctrl+F, first checking the find-input entry point and the behavior introduced in version 0.1.73 or build 5b2803a. Done means continuous typing, including Chinese composition, works and searching for absent text reports no matches rather than 1/1.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.