[feat] update roam publish function

This commit is contained in:
SouthFox 2024-06-19 00:15:02 +08:00
parent db66ef7dc1
commit e080da4b94
2 changed files with 12 additions and 8 deletions

View file

@ -150,10 +150,12 @@
(org-roam-set-keyword "filetags" ":publish:")
(save-buffer)
(org-hugo-export-wim-to-md)
(shell-command (concat "cd " org-hugo-base-dir
" && " "git add ."
" && " "git commit -m '[post] new post'"
" && " "git push"))
(async-shell-command (concat
"cd " org-hugo-base-dir
" && " "git add ."
" && " "git commit -m '[post] new post'"
(if (yes-or-no-p "Push now?")
(" && " "git push"))) "*Messages*")
(message "publish nwe post!"))
(defun my/org-roam-creat-node ()

View file

@ -206,10 +206,12 @@
(org-roam-set-keyword "filetags" ":publish:")
(save-buffer)
(org-hugo-export-wim-to-md)
(shell-command (concat "cd " org-hugo-base-dir
" && " "git add ."
" && " "git commit -m '[post] new post'"
" && " "git push"))
(async-shell-command (concat
"cd " org-hugo-base-dir
" && " "git add ."
" && " "git commit -m '[post] new post'"
(if (yes-or-no-p "Push now?")
(" && " "git push"))) "*Messages*")
(message "publish nwe post!"))
(defun my/org-roam-creat-node ()