You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Desktop: Add option to "Reveal file in folder" when right-clicking on image
Co-authored-by: Vaidotas Šimkus
This commit is contained in:
@@ -29,6 +29,10 @@ class Bridge {
|
||||
return this.electronWrapper_.window();
|
||||
}
|
||||
|
||||
showItemInFolder(fullPath) {
|
||||
return require('electron').shell.showItemInFolder(fullPath);
|
||||
}
|
||||
|
||||
newBrowserWindow(options) {
|
||||
return new BrowserWindow(options);
|
||||
}
|
||||
|
@@ -71,6 +71,15 @@ export default function useMessageHandler(scrollWhenReady:any, setScrollWhenRead
|
||||
})
|
||||
);
|
||||
|
||||
menu.append(
|
||||
new MenuItem({
|
||||
label: _('Reveal file in folder'),
|
||||
click: async () => {
|
||||
bridge().showItemInFolder(resourcePath);
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
menu.append(
|
||||
new MenuItem({
|
||||
label: _('Copy path to clipboard'),
|
||||
|
Reference in New Issue
Block a user