Find within an open text file is unavailable in the Android Text editor (previously available in preview)

未关闭
#17,834 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
android, kotlin
领域
mobile

调研方向

The payload names no source files. Start from the read-only text preview that pull request #565 added, then find the Android editor screen that opens text and markdown files. Done means a find action in the editor that highlights matches, steps between them with a counter, scrolls to the current match, and closes back to the editor without opening global file search.

由索引模型根据 Issue 内容生成。

描述

0. Needs triage enhancement
Is your feature request related to a problem? Please describe.

When I open a text/markdown file in the editor in the Nextcloud Android app, there is no way to search within the content of the file I am editing.
There is no "find" entry in the overflow menu, no search icon in the toolbar, and the system/WebView find-on-page function is not reachable either.

For longer documents (notes, meeting minutes, checklists, logs, code snippets) this makes it impractical to jump to the relevant spot — the only option is to scroll manually through the whole file.

Note: search inside the read-only text preview was added earlier (see #211 and #3096, milestone 3.4.0, pull request #565).

Describe the solution you'd like

A "Find in document" function available while editing:

  • Search icon in the editor toolbar, or a "Find" item in the ⋮ overflow menu
  • Input field for the search term
  • All matches highlighted in the document
  • Next / previous buttons plus a match counter (e.g. "3 / 17")
  • Editor scrolls to and highlights the current match
  • Closing the search returns to the editor at the current cursor/match position (and does NOT fall back into global file search — cf. #3096)

Nice to have, but not required for a first version:

  • Case-sensitive toggle
  • Whole-word toggle
  • Find & replace / replace all
Describe alternatives you've considered
  • Downloading the file and opening it in a third-party editor that supports search — breaks the sync workflow and risks conflicts.
  • Using the web interface in a mobile browser and the browser's "Find in page" — works, but defeats the purpose of having the app.
  • Using the global Nextcloud search — that finds files, not positions inside the file I'm currently editing.
Additional context
  • Android version: LineageOS 23.2
  • Nextcloud Android app version: 35.0.1
主要语言
Kotlin
星标
5.7k
派生
2.1k
平均合并
1 天 22 小时
30 天内合并 PR
135

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/android 的其他 Issue

查看 nextcloud/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。