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

Make split-show-next/prev work from elfeed-search-buffer as well #26

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions elfeed-goodies-split-pane.el
Expand Up @@ -55,18 +55,23 @@
(elfeed-search-update-entry entry)
(elfeed-show-entry entry)))

(defun elfeed-entry-buffer ()
(get-buffer-create "*elfeed-entry*"))

(defun elfeed-goodies/split-show-next ()
"Show the next item in the elfeed-search buffer."
(interactive)
(funcall elfeed-show-entry-delete)
(with-current-buffer (elfeed-entry-buffer)
(condition-case nil (funcall elfeed-show-entry-delete) (error nil)))
(with-current-buffer (elfeed-search-buffer)
(forward-line)
(call-interactively #'elfeed-goodies/split-search-show-entry)))

(defun elfeed-goodies/split-show-prev ()
"Show the previous item in the elfeed-search buffer."
(interactive)
(funcall elfeed-show-entry-delete)
(with-current-buffer (elfeed-entry-buffer)
(condition-case nil (funcall elfeed-show-entry-delete) (error nil)))
(with-current-buffer (elfeed-search-buffer)
(forward-line -1)
(call-interactively #'elfeed-goodies/split-search-show-entry)))
Expand Down