mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448
This commit is contained in:
parent
5c641120ae
commit
16f116cfd2
1 changed files with 2 additions and 8 deletions
|
|
@ -1,10 +1,4 @@
|
||||||
import {
|
import {copySubMenu, exportMd, movePathToMenu, openFileAttr, renameMenu,} from "./commonMenuItem";
|
||||||
copySubMenu,
|
|
||||||
exportMd,
|
|
||||||
movePathToMenu,
|
|
||||||
openFileAttr,
|
|
||||||
renameMenu,
|
|
||||||
} from "./commonMenuItem";
|
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
import {FileFilter, shell} from "electron";
|
import {FileFilter, shell} from "electron";
|
||||||
import {dialog as remoteDialog} from "@electron/remote";
|
import {dialog as remoteDialog} from "@electron/remote";
|
||||||
|
|
@ -543,7 +537,7 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
|
||||||
/// #endif
|
/// #endif
|
||||||
if (!window.siyuan.config.readonly) {
|
if (!window.siyuan.config.readonly) {
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
label: window.siyuan.languages.dataHistory,
|
label: window.siyuan.languages.fileHistory,
|
||||||
icon: "iconHistory",
|
icon: "iconHistory",
|
||||||
click() {
|
click() {
|
||||||
openDocHistory({app, id, notebookId, pathString: name});
|
openDocHistory({app, id, notebookId, pathString: name});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue