Skip to content

Commit

Permalink
Merge pull request #4 from danielma/dma/urls-as-text
Browse files Browse the repository at this point in the history
Show only text of links
  • Loading branch information
Daniel Ma authored Apr 12, 2018
2 parents df20628 + f1dac12 commit fdf7552
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions magit-org-todos.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@
(magit-insert-section (org-todos-wrapper)
(magit-insert-heading "Todos:")
(dolist (todo todos)
(let ((keyword (org-element-property :todo-keyword todo))
(title (org-element-property :raw-value todo)))
(let* ((keyword (org-element-property :todo-keyword todo))
(title (org-element-property :title todo)))
(magit-insert-section (org-todos title)
(insert (concat "* " (propertize keyword 'face 'org-todo) " " title))
(insert ?\n))))
(insert (concat "* " (propertize keyword 'face 'org-todo) " "))
(dolist (el title)
(if (and (listp el) (eq (car el) 'link))
(insert (car (last el)))
(insert el)))))
(insert ?\n))
(insert ?\n)))))

;;;###autoload
Expand Down
2 changes: 1 addition & 1 deletion todo.org
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* TODO add interactivity
* TODO add interactivity [[https://feedly.com/][the link]]
* TODO tweet about it

0 comments on commit fdf7552

Please sign in to comment.