File tree 2 files changed +11
-0
lines changed
apps/desktop/src/components
crates/gitbutler-tauri/src
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 30
30
openExternalUrl (path );
31
31
});
32
32
33
+ shortcutService .on (' open-in-finder' , () => {
34
+ const path = ` file://${project .path } ` ;
35
+ openExternalUrl (path );
36
+ });
37
+
33
38
shortcutService .on (' history' , () => {
34
39
$showHistoryView = ! $showHistoryView ;
35
40
});
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ pub fn build<R: Runtime>(handle: &AppHandle<R>) -> tauri::Result<tauri::menu::Me
172
172
. build ( handle) ?,
173
173
)
174
174
. text ( "project/open-in-vscode" , "Open in Editor" )
175
+ . text ( "project/open-in-finder" , "Open in Finder" )
175
176
. separator ( )
176
177
. text ( "project/settings" , "Project Settings" )
177
178
. build ( ) ?;
@@ -299,6 +300,11 @@ pub fn handle_event(webview: &WebviewWindow, event: &MenuEvent) {
299
300
return ;
300
301
}
301
302
303
+ if event. id ( ) == "project/open-in-finder" {
304
+ emit ( webview, SHORTCUT_EVENT , "open-in-finder" ) ;
305
+ return ;
306
+ }
307
+
302
308
if event. id ( ) == "project/settings" {
303
309
emit ( webview, SHORTCUT_EVENT , "project-settings" ) ;
304
310
return ;
You can’t perform that action at this time.
0 commit comments