Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated search show functions to show date #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions elfeed-goodies-search-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ and the length of the active queue."
(defun search-header/draw-wide (separator-left separator-right search-filter stats db-time)
(let* ((update (format-time-string "%Y-%m-%d %H:%M:%S %z" db-time))
(lhs (list
(powerline-raw (-pad-string-to "Published" (- elfeed-goodies/feed-source-column-width 4)) 'powerline-active1 'l)
(funcall separator-left 'powerline-active1 'powerline-active2)
(powerline-raw (-pad-string-to "Feed" (- elfeed-goodies/feed-source-column-width 4)) 'powerline-active1 'l)
(funcall separator-left 'powerline-active1 'powerline-active2)
(powerline-raw (-pad-string-to "Tags" (- elfeed-goodies/tag-column-width 6)) 'powerline-active2 'l)
Expand Down Expand Up @@ -128,6 +130,7 @@ and the length of the active queue."
"Print ENTRY to the buffer."

(let* ((title (or (elfeed-meta entry :title) (elfeed-entry-title entry) ""))
(date (elfeed-search-format-date (elfeed-entry-date entry)))
(title-faces (elfeed-search--faces (elfeed-entry-tags entry)))
(feed (elfeed-entry-feed entry))
(feed-title
Expand Down Expand Up @@ -156,6 +159,7 @@ and the length of the active queue."

(if (>= (window-width) (* (frame-width) elfeed-goodies/wide-threshold))
(progn
(insert (propertize date 'face 'elfeed-search-date-face) " ")
(insert (propertize feed-column 'face 'elfeed-search-feed-face) " ")
(insert (propertize tag-column 'face 'elfeed-search-tag-face) " ")
(insert (propertize title 'face title-faces 'kbd-help title)))
Expand Down