mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-24 21:40:48 +02:00
refactor(opener)!: rename reveal_item_in_dir command to reveal_items_in_dir (#3608)
* refactor(opener)!: rename reveal_item_in_dir command to reveal_items_in_dir The `allow-reveal-item-in-dir` and `deny-reveal-item-in-dir` permissions are now `allow-reveal-items-in-dir` and `deny-reveal-items-in-dir`. The `revealItemInDir` JavaScript function and the Rust `Opener` methods are unchanged. * cr * retain rust api * fix build * update docs, rename ts api * cr * Apply suggestion from @Legend-Master --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
This commit is contained in:
co-authored by
Tony
parent
9c550e267d
commit
f2c77194d6
@@ -6,7 +6,7 @@ as well as reveal file in directories using default file explorer
|
||||
#### This default permission set includes the following:
|
||||
|
||||
- `allow-open-url`
|
||||
- `allow-reveal-item-in-dir`
|
||||
- `allow-reveal-items-in-dir`
|
||||
- `allow-default-urls`
|
||||
|
||||
## Permission Table
|
||||
@@ -73,12 +73,12 @@ Denies the open_url command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`opener:allow-reveal-item-in-dir`
|
||||
`opener:allow-reveal-items-in-dir`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the reveal_item_in_dir command without any pre-configured scope.
|
||||
Enables the reveal_items_in_dir command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@@ -86,12 +86,12 @@ Enables the reveal_item_in_dir command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`opener:deny-reveal-item-in-dir`
|
||||
`opener:deny-reveal-items-in-dir`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the reveal_item_in_dir command without any pre-configured scope.
|
||||
Denies the reveal_items_in_dir command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -5,6 +5,6 @@ description = """This permission set allows opening `mailto:`, `tel:`, `https://
|
||||
as well as reveal file in directories using default file explorer"""
|
||||
permissions = [
|
||||
"allow-open-url",
|
||||
"allow-reveal-item-in-dir",
|
||||
"allow-reveal-items-in-dir",
|
||||
"allow-default-urls",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user