Skip to content

Commit

Permalink
Fixes hyde-get-post-assets to generate complete list of assets
Browse files Browse the repository at this point in the history
  • Loading branch information
nibrahim committed Jun 15, 2013
1 parent ad9880a commit 0957a0c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions hyde.el
Expand Up @@ -249,10 +249,14 @@ user"
(goto-char (point-min))
(let ((assets '()))
(while (re-search-forward "!\\[\\(.*?\\)\\](\\(.*?\\))" nil t)
; TBD don't try to process http assets.
(add-to-list 'assets (match-string-no-properties 2)))
;; TBD don't try to process http assets.
(add-to-list 'assets (concat
(strip-string (shell-command-to-string (format "dirname %s" post)))
"/"
(match-string-no-properties 2))))

assets)))

(defun hyde/promote-to-post (pos)
"Promotes the post under the cursor from a draft to a post"
(interactive "d")
Expand Down

0 comments on commit 0957a0c

Please sign in to comment.