zhanghai / zhanghai/MaterialFiles

Select multiple items with long-press

Open
#369 14 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

Hi, let's say I want to select the first 4 files but not the fifth one. Instead of selecting the files one by one, here's how I want to do:

  1. Select the 1st file

Screenshot_20200904-141357

  1. Long-press the 4th file

Screenshot_20200904-141415

  1. All the files between the 1st and 4th have been selected.

Screenshot_20200904-142338


Is there a way to do that currently or does it have to be implemented?

If it has to be implemented, maybe the developer(s) could take some inspiration of what has been done in Simple Gallery Pro. In this app it is possible to do long presses to select multiple files.


Considerations

Yes, I already know I can select all items and de-select those I don't want. I kept in simple with only 6 items in my screenshot but I do have directories containing 2000+ files and "Select all" is useless for those.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are named in the issue. Start by reproducing the described selection flow in an Android file list and trace the existing item-selection handling; done means long-pressing a later item selects the contiguous range without selecting items outside it, including in large directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.