diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-04 16:20:00 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-04 17:07:14 -0200 |
commit | e1a57f49379fa9345b662a721941edd7371db60b (patch) | |
tree | d9c6bb179fb5b5dbb00d93a0d2a23bf9a5442e64 | |
parent | 89834aa61adf1fff29379c82ab96629f0b2960d0 (diff) |
Implement listing starred questions.
Fix #14
-rw-r--r-- | sx-switchto.el | 1 | ||||
-rw-r--r-- | sx-tab.el | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sx-switchto.el b/sx-switchto.el index 1a2c3a0..76804e4 100644 --- a/sx-switchto.el +++ b/sx-switchto.el @@ -47,6 +47,7 @@ ("U" sx-tab-unanswered-my-tags) ("v" sx-tab-topvoted) ("w" sx-tab-week) + ("*" sx-tab-starred) )) @@ -232,6 +232,24 @@ If SITE is nil, use `sx-default-site'." nil t) +;;; Starred +(sx-tab--define "Starred" + (lambda (page) + (sx-method-call 'me + :page page + :site sx-question-list--site + :auth t + :submethod 'favorites + :filter sx-browse-filter))) +;;;###autoload +(autoload 'sx-tab-featured + (expand-file-name + "sx-tab" + (when load-file-name + (file-name-directory load-file-name))) + nil t) + + ;;; Inter-modes navigation (defun sx-tab-meta-or-main () "Switch to the meta version of a main site, or vice-versa. |