linebender / linebender/druid

Selecting multiple files

Open
#2,366 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Right now after creating a FileDialogOptions and showing it:

let options = FileDialogOptions::new().multi_selection(); ctx.submit_command(commands::SHOW_OPEN_PANEL.with(options))

it can only be handled with the cmd.get(commands::OPEN_FILE). I have implemented a case for cmd.get(commands::OPEN_FILES) in my AppDelegate, but couldn't find a way to call it.

Contributor guide

Open the contributing guide

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

Trace FileDialogOptions::multi_selection, SHOW_OPEN_PANEL, and the OPEN_FILES command, starting from the file-dialog command handling path. Check how AppDelegate receives commands and determine what prevents multi-selection from reaching OPEN_FILES. Done means a multi-selection produces the expected OPEN_FILES command while single-file selection continues to use OPEN_FILE.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.