|
@@ -45,7 +45,8 @@
|
|
|
[logseq.graph-parser.util :as gp-util]
|
|
|
[logseq.graph-parser.util.page-ref :as page-ref]
|
|
|
[promesa.core :as p]
|
|
|
- [logseq.common.path :as path]))
|
|
|
+ [logseq.common.path :as path]
|
|
|
+ [electron.ipc :as ipc]))
|
|
|
|
|
|
;; FIXME: add whiteboard
|
|
|
(defn- get-directory
|
|
@@ -878,7 +879,7 @@
|
|
|
(if-let [file-rpath (and (util/electron?) (page-util/get-page-file-rpath))]
|
|
|
(let [repo-dir (config/get-repo-dir (state/get-current-repo))
|
|
|
file-fpath (path/path-join repo-dir file-rpath)]
|
|
|
- (js/window.apis.showItemInFolder file-fpath))
|
|
|
+ (ipc/ipc "openFileInFolder" file-fpath))
|
|
|
(notification/show! "No file found" :warning)))
|
|
|
|
|
|
(defn copy-page-url
|