mirror of https://github.com/logseq/logseq
chore: disable raw file editing mode temporally
parent
7de23f1397
commit
736129eb33
|
@ -385,19 +385,19 @@
|
||||||
page-name
|
page-name
|
||||||
path-page-name))]])
|
path-page-name))]])
|
||||||
[:div
|
[:div
|
||||||
[:div.content
|
;; [:div.content
|
||||||
(when (and file-path
|
;; (when (and file-path
|
||||||
(not sidebar?)
|
;; (not sidebar?)
|
||||||
(not block?)
|
;; (not block?)
|
||||||
(not (state/hide-file?))
|
;; (not (state/hide-file?))
|
||||||
(not config/publishing?))
|
;; (not config/publishing?))
|
||||||
[:div.text-sm.ml-1.mb-4.flex-1.inline-flex
|
;; [:div.text-sm.ml-1.mb-4.flex-1.inline-flex
|
||||||
{:key "page-file"}
|
;; {:key "page-file"}
|
||||||
[:span.opacity-50 {:style {:margin-top 2}} (t :file/file)]
|
;; [:span.opacity-50 {:style {:margin-top 2}} (t :file/file)]
|
||||||
[:a.bg-base-2.px-1.ml-1.mr-3 {:style {:border-radius 4
|
;; [:a.bg-base-2.px-1.ml-1.mr-3 {:style {:border-radius 4
|
||||||
:word-break "break-word"}
|
;; :word-break "break-word"}
|
||||||
:href (rfe/href :file {:path file-path})}
|
;; :href (rfe/href :file {:path file-path})}
|
||||||
file-path]])]
|
;; file-path]])]
|
||||||
|
|
||||||
(when (and repo (not block?))
|
(when (and repo (not block?))
|
||||||
(let [alias (db/get-page-alias-names repo page-name)]
|
(let [alias (db/get-page-alias-names repo page-name)]
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
:ui/toggle-new-block "t e"
|
:ui/toggle-new-block "t e"
|
||||||
:ui/show-contents "t c"
|
:ui/show-contents "t c"
|
||||||
:ui/toggle-wide-mode "t w"
|
:ui/toggle-wide-mode "t w"
|
||||||
:ui/toggle-between-page-and-file "s"
|
;; :ui/toggle-between-page-and-file "s"
|
||||||
:ui/fold "tab"
|
:ui/fold "tab"
|
||||||
:ui/un-fold "shift+tab"
|
:ui/un-fold "shift+tab"
|
||||||
:ui/toggle-brackets "mod+c mod+b"
|
:ui/toggle-brackets "mod+c mod+b"
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
:ui/toggle-new-block state/toggle-new-block-shortcut!
|
:ui/toggle-new-block state/toggle-new-block-shortcut!
|
||||||
:ui/show-contents ui-handler/toggle-contents!
|
:ui/show-contents ui-handler/toggle-contents!
|
||||||
:ui/toggle-wide-mode ui-handler/toggle-wide-mode!
|
:ui/toggle-wide-mode ui-handler/toggle-wide-mode!
|
||||||
:ui/toggle-between-page-and-file route-handler/toggle-between-page-and-file!
|
;; :ui/toggle-between-page-and-file route-handler/toggle-between-page-and-file!
|
||||||
:ui/fold (editor-handler/on-tab :right)
|
:ui/fold (editor-handler/on-tab :right)
|
||||||
:ui/un-fold (editor-handler/on-tab :left)
|
:ui/un-fold (editor-handler/on-tab :left)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue