]> saetta.ns0.it Git - emacs/elfeed-speedbar/commitdiff
Added function to filter feed's entries. master
authorAndrea Zagli <azagli@libero.it>
Sun, 10 Sep 2017 08:08:28 +0000 (10:08 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 10 Sep 2017 08:08:28 +0000 (10:08 +0200)
elfeed-search-speedbar.el

index d8873c636c02ee45d3f3d43e7dbf321722d7b20a..a141e2c1e96a446256f642acf71b8c0e34f4e191 100644 (file)
         'elfeed~speedbar-feed
         feed-title)))
 
+(defun elfeed~speedbar-feed (&optional text token ident)
+  "Filter news by TOKEN. TEXT and INDENT are not used."
+  (speedbar-with-attached-buffer (elfeed-search-set-filter (concat elfeed-search-filter " " token))))
+
 ;;;###autoload
 (defun elfeed-search-speedbar-buttons (buffer)
   "Create buttons for any elfeed BUFFER."
@@ -73,9 +77,6 @@
   (erase-buffer)
   (insert (propertize "* elfeed\n\n" 'face 'italic))
 
-  (insert (propertize " Bookmarks\n" 'face 'italic))
-  ;;;(mu4e~speedbar-render-bookmark-list)
-  (insert "\n")
   (insert (propertize " Feeds\n" 'face 'italic))
   (elfeed~speedbar-render-feeds-list)
   )