Skip to content

Commit 23c5013

Browse files
committed
feature: reveal multiple items in dir
1 parent 61ffc83 commit 23c5013

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

plugins/opener/README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<!-- description -->
44

5-
| Platform | Supported |
6-
| -------- | --------- |
7-
| Linux ||
8-
| Windows ||
9-
| macOS ||
10-
| Android | ? |
11-
| iOS | ? |
5+
| Platform | Supported | Notes |
6+
|----------|-----------|---------------------------------------------------------------------------|
7+
| Linux || |
8+
| Windows || Revealing multiple files placed in different directories is not supported |
9+
| macOS || |
10+
| Android | ? | |
11+
| iOS | ? | |
1212

1313
## Install
1414

@@ -75,6 +75,10 @@ await openPath('/path/to/file', 'firefox')
7575

7676
// Reveal a path with the system's default explorer
7777
await revealItemInDir('/path/to/file')
78+
79+
// Reveal multiple paths with the system's default explorer
80+
// Note: on Windows, files have to be in the same directory
81+
await revealItemsInDir([ '/path/to/file', '/path/to/another/file' ])
7882
```
7983

8084
### Usage from Rust
@@ -102,6 +106,10 @@ fn main() {
102106

103107
// Reveal a path with the system's default explorer
104108
opener.reveal_item_in_dir("/path/to/file")?;
109+
110+
// Reveal multiple paths with the system's default explorer
111+
// Note: on Windows, files have to be in the same directory
112+
opener.reveal_items_in_dir(&["/path/to/file"])?;
105113
Ok(())
106114
})
107115
.run(tauri::generate_context!())

0 commit comments

Comments
 (0)