Skip to content

Feature/search teleport to file - #4713

Open
yasminhosam wants to merge 4 commits into
TeamAmaze:release/4.0from
yasminhosam:feature/search-teleport-to-file
Open

Feature/search teleport to file#4713
yasminhosam wants to merge 4 commits into
TeamAmaze:release/4.0from
yasminhosam:feature/search-teleport-to-file

Conversation

@yasminhosam

Copy link
Copy Markdown

Description

This PR adds a "teleport to file" icon in search results. Tapping the new icon navigates to the file's parent folder and highlights/selects it there, so the user can act on it directly (rename, move, delete, etc.) without opening it first.

Directory results in search are unaffected — tapping a directory result still opens it directly, as before.

This reuses the existing scrollToFileName + getScrollPosition() mechanism already present in MainActivity/MainFragment/MainFragmentViewModel , rather than duplicating scroll/highlight logic.

Issue tracker

Fixes #4695

Automatic tests

  • Added unit tests for specific individual functions
  • Added headless tests for new app functionality
  • Added emulator tests for new UI elements

Manual tests

  • Done

  • Device: Samsung Galaxy A23

  • OS: Android 14

Build tasks success

Successfully running following tasks on local:

  • ./gradlew assembledebug
  • ./gradlew spotlessCheck

Generative code

  • This PR used generative code tools (GenAI, LLMs, etc.)

  • Model: Claude Sonnet 5

  • Version: 5

  • Provider: Anthropic

* Simple holder for a file's parent path and name. Not an android.util.Pair to keep it usable in
* plain JUnit tests (android.* classes are stubbed out in non-Robolectric unit tests).
*/
static class ParentAndFileName {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for not using HybridFile here? Does this work with external searches: SMB, FTP, cloud, etc?

@EmmanuelMess EmmanuelMess added the Needs-OPResponse Needs original poster to respond label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs-OPResponse Needs original poster to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ALLOW the search to "teleport" to file

2 participants