mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
feat: add git auto push option to settings
Also, add ctrl-s for auto-pushing
This commit is contained in:
@@ -2101,4 +2101,11 @@
|
||||
|
||||
(defn periodically-save!
|
||||
[]
|
||||
(js/setInterval save-current-block-when-idle! 1000))
|
||||
(js/setInterval save-current-block-when-idle! 500))
|
||||
|
||||
(defn save!
|
||||
[]
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(save-current-block-when-idle! {:check-idle? false})
|
||||
(when (string/starts-with? repo "https://") ; git repo
|
||||
(repo-handler/auto-push!))))
|
||||
|
||||
Reference in New Issue
Block a user