From 447d49610b8986a3aef763e2ff8566e93110eba7 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 29 Mar 2023 17:03:10 +0200 Subject: readme: trending statuses --- README.org | 1 + 1 file changed, 1 insertion(+) (limited to 'README.org') diff --git a/README.org b/README.org index 405eb20..bea37d9 100644 --- a/README.org +++ b/README.org @@ -260,6 +260,7 @@ work without first loading =mastodon.el=: - =mastodon-tl--view-own-instance=: View information about your own instance. - =mastodon-search--trending-tags=: View a list of trending hashtags on your instance. +- =mastodon-search--trending-statuses=: View a list of trending statuses on your instance. - =mastodon-tl--add-toot-account-at-point-to-list=: Add the account of the toot at point to a list. -- cgit v1.2.3 From 37f76f3bcb5d1d33412c9517762db57dc469c22b Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 1 Apr 2023 13:12:55 +0200 Subject: readme re timeline prefix args --- README.org | 140 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 70 insertions(+), 70 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index bea37d9..fbff0cd 100644 --- a/README.org +++ b/README.org @@ -111,76 +111,76 @@ not contain =:client_id= and =:client_secret=. **** Keybindings -|----------------+---------------------------------------------------------------------------| -| Key | Action | -|----------------+---------------------------------------------------------------------------| -| | *Help* | -| =?= | Show discover menu of all bindings, if =discover= is available | -|----------------+---------------------------------------------------------------------------| -| | *Timeline actions* | -| =n= | Go to next item (toot, notification, user) | -| =p= | Go to previous item (toot, notification, user) | -| =M-n=/== | Go to the next interesting thing that has an action | -| =M-p=/== | Go to the previous interesting thing that has an action | -| =F= | Open federated timeline | -| =H= | Open home timeline | -| =L= | Open local timeline | -| =N= | Open notifications timeline | -| =@= | Open mentions-only notifications timeline | -| =u= | Update current timeline | -| =T= | Open thread for toot at point | -| =#= | Prompt for tag and open its timeline | -| =A= | Open author profile of toot at point | -| =P= | Open profile of user attached to toot at point | -| =O= | View own profile | -| =U= | update your profile bio note | -| =;= | view instance description for toot at point | -| =:= | view followed tags and load a tag timeline | -| =,= | view favouriters of toot at point | -| =.= | view boosters of toot at point | -| =/= | switch between mastodon buffers | -|----------------+---------------------------------------------------------------------------| -| | *Other views* | -| =s= | search (posts, users, tags) (NB: only posts you have interacted with) | -| =I=, =c=, =d= | view, create, and delete filters | -| =R=, =a=, =j= | view/accept/reject follow requests | -| =G= | view follow suggestions | -| =V= | view your favourited toots | -| =K= | view bookmarked toots | -| =X= | view/edit/create/delete lists | -| =S= | view your scheduled toots | -|----------------+---------------------------------------------------------------------------| -| | *Toot actions* | -| =t= | Compose a new toot | -| =c= | Toggle content warning content | -| =b= | Boost toot under =point= | -| =f= | Favourite toot under =point= | -| =k= | toggle bookmark of toot at point | -| =r= | Reply to toot under =point= | -| =v= | Vote on poll at point | -| =C= | copy url of toot at point | -| =C-RET= | play video/gif at point (requires =mpv=) | -| =e= | edit your toot at point | -| =E= | view edits of toot at point | -| =i= | (un)pin your toot at point | -| =d= | delete your toot at point, and reload current timeline | -| =D= | delete and redraft toot at point, preserving reply/CW/visibility | -| (=S-C-=) =W=, =M=, =B= | (un)follow, (un)mute, (un)block author of toot at point | -|----------------+---------------------------------------------------------------------------| -| | *Profile view* | -| =C-c C-c= | cycle between statuses, statuses without boosts, followers, and following | -| | =mastodon-profile--account-account-to-list= (see lists view) | -|----------------+---------------------------------------------------------------------------| -| | *Notifications view* | -| =a=, =j= | accept/reject follow request | -| =C-k= | clear notification at point | -| | see =mastodon-notifications--get-*= functions for filtered views | -|----------------+---------------------------------------------------------------------------| -| | *Quitting* | -| =q= | Quit mastodon buffer, leave window open | -| =Q= | Quit mastodon buffer and kill window | -| =C-M-q= | Quit and kill all mastodon buffers | -|----------------+---------------------------------------------------------------------------| +|----------------+---------------------------------------------------------------------------------| +| Key | Action | +|----------------+---------------------------------------------------------------------------------| +| | *Help* | +| =?= | Show discover menu of all bindings, if =discover= is available | +|----------------+---------------------------------------------------------------------------------| +| | *Timeline actions* | +| =n= | Go to next item (toot, notification, user) | +| =p= | Go to previous item (toot, notification, user) | +| =M-n=/== | Go to the next interesting thing that has an action | +| =M-p=/== | Go to the previous interesting thing that has an action | +| =F= | Open federated timeline (1 prefix arg: hide-replies, 2 prefix args: media only) | +| =H= | Open home timeline (1 prefix arg: hide-replies) | +| =L= | Open local timeline (1 prefix arg: hide-replies, 2 prefix args: media only) | +| =N= | Open notifications timeline | +| =@= | Open mentions-only notifications timeline | +| =u= | Update current timeline | +| =T= | Open thread for toot at point | +| =#= | Prompt for tag and open its timeline | +| =A= | Open author profile of toot at point | +| =P= | Open profile of user attached to toot at point | +| =O= | View own profile | +| =U= | update your profile bio note | +| =;= | view instance description for toot at point | +| =:= | view followed tags and load a tag timeline | +| =,= | view favouriters of toot at point | +| =.= | view boosters of toot at point | +| =/= | switch between mastodon buffers | +|----------------+---------------------------------------------------------------------------------| +| | *Other views* | +| =s= | search (posts, users, tags) (NB: only posts you have interacted with) | +| =I=, =c=, =d= | view, create, and delete filters | +| =R=, =a=, =j= | view/accept/reject follow requests | +| =G= | view follow suggestions | +| =V= | view your favourited toots | +| =K= | view bookmarked toots | +| =X= | view/edit/create/delete lists | +| =S= | view your scheduled toots | +|----------------+---------------------------------------------------------------------------------| +| | *Toot actions* | +| =t= | Compose a new toot | +| =c= | Toggle content warning content | +| =b= | Boost toot under =point= | +| =f= | Favourite toot under =point= | +| =k= | toggle bookmark of toot at point | +| =r= | Reply to toot under =point= | +| =v= | Vote on poll at point | +| =C= | copy url of toot at point | +| =C-RET= | play video/gif at point (requires =mpv=) | +| =e= | edit your toot at point | +| =E= | view edits of toot at point | +| =i= | (un)pin your toot at point | +| =d= | delete your toot at point, and reload current timeline | +| =D= | delete and redraft toot at point, preserving reply/CW/visibility | +| (=S-C-=) =W=, =M=, =B= | (un)follow, (un)mute, (un)block author of toot at point | +|----------------+---------------------------------------------------------------------------------| +| | *Profile view* | +| =C-c C-c= | cycle between statuses, statuses without boosts, followers, and following | +| | =mastodon-profile--account-account-to-list= (see lists view) | +|----------------+---------------------------------------------------------------------------------| +| | *Notifications view* | +| =a=, =j= | accept/reject follow request | +| =C-k= | clear notification at point | +| | see =mastodon-notifications--get-*= functions for filtered views | +|----------------+---------------------------------------------------------------------------------| +| | *Quitting* | +| =q= | Quit mastodon buffer, leave window open | +| =Q= | Quit mastodon buffer and kill window | +| =C-M-q= | Quit and kill all mastodon buffers | +|----------------+---------------------------------------------------------------------------------| **** Toot byline legend -- cgit v1.2.3 From 08dc0d1990754a94cf2dc0899c8a579bb485c377 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 1 Apr 2023 17:09:24 +0200 Subject: timeline of all followed tags. FIX #409. --- README.org | 1 + lisp/mastodon-tl.el | 22 ++++++++++++++++++---- lisp/mastodon.el | 2 ++ 3 files changed, 21 insertions(+), 4 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index fbff0cd..fa1afcb 100644 --- a/README.org +++ b/README.org @@ -136,6 +136,7 @@ not contain =:client_id= and =:client_secret=. | =U= | update your profile bio note | | =;= | view instance description for toot at point | | =:= | view followed tags and load a tag timeline | +| =M-:= | view timeline of all followed tags | | =,= | view favouriters of toot at point | | =.= | view boosters of toot at point | | =/= | switch between mastodon buffers | diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 0c3630b..46ea5da 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -400,6 +400,7 @@ With a double PREFIX arg, limit results to your own instance." (defun mastodon-tl--show-tag-timeline (&optional prefix tag) "Opens a new buffer showing the timeline of posts with hastag TAG. +If TAG is a list, show a timeline for all tags. With a single PREFIX arg, only show posts with media. With a double PREFIX arg, limit results to your own instance." (let ((params @@ -409,13 +410,18 @@ With a double PREFIX arg, limit results to your own instance." (push '("only_media" . "true") params)) (when (eq prefix 16) (push '("local" . "true") params)) - (mastodon-tl--init (concat "tag-" tag) - (concat "timelines/tag/" tag) + (when (listp tag) + (let ((list (mastodon-http--build-array-params-alist "any[]" (cdr tag)))) + (while list + (push (pop list) params)))) + (mastodon-tl--init (concat "tag-" (if (listp tag) "followed-tags" tag)) + (concat "timelines/tag/" (if (listp tag) + ;; endpoint needs to be /tag/:sometag + (car tag) tag)) 'mastodon-tl--timeline nil params))) - ;;; BYLINES, etc. @@ -899,7 +905,7 @@ Used for hitting RET on a given link." (cond ((eq link-type 'content-warning) (mastodon-tl--toggle-spoiler-text position)) ((eq link-type 'hashtag) - (mastodon-tl--show-tag-timeline (get-text-property position 'mastodon-tag))) + (mastodon-tl--show-tag-timeline nil (get-text-property position 'mastodon-tag))) ;; 'account / 'account-id is not set for mentions, only bylines ((eq link-type 'user-handle) (let ((account-json (get-text-property position 'account)) @@ -2078,6 +2084,14 @@ If TAG is provided, unfollow it." (message "You have to follow some tags first.") (mastodon-tl--get-tag-timeline nil tag)))) +(defun mastodon-tl--followed-tags-timeline () + "Open a timeline of all your followed tags." + (interactive) + (let* ((followed-tags-json (mastodon-tl--followed-tags)) + (tags (mastodon-tl--map-alist 'name followed-tags-json))) + (mastodon-tl--show-tag-timeline nil tags))) + + ;;; UPDATING, etc. diff --git a/lisp/mastodon.el b/lisp/mastodon.el index ef0d2c0..1b975f2 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -64,6 +64,7 @@ (autoload 'mastodon-profile--view-favourites "mastodon-profile") (autoload 'mastodon-tl--block-user "mastodon-tl") (autoload 'mastodon-tl--follow-user "mastodon-tl") +(autoload 'mastodon-tl--followed-tags-timeline "mastodon-tl") (autoload 'mastodon-tl--get-buffer-type "mastodon-tl") (autoload 'mastodon-tl--get-federated-timeline "mastodon-tl") (autoload 'mastodon-tl--get-home-timeline "mastodon-tl") @@ -152,6 +153,7 @@ Use. e.g. \"%c\" for your locale's date and time format." ;; navigation between timelines (define-key map (kbd "#") #'mastodon-tl--get-tag-timeline) (define-key map (kbd ":") #'mastodon-tl--list-followed-tags) + (define-key map (kbd "M-:") #'mastodon-tl--followed-tags-timeline) (define-key map (kbd "A") #'mastodon-profile--get-toot-author) (define-key map (kbd "F") #'mastodon-tl--get-federated-timeline) (define-key map (kbd "H") #'mastodon-tl--get-home-timeline) -- cgit v1.2.3 From c6acfe694d3c2e0468c98478775442f8710de7e1 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 5 Apr 2023 13:02:40 +0200 Subject: read me re view all followed tags binding --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.org') diff --git a/README.org b/README.org index fa1afcb..3ddea70 100644 --- a/README.org +++ b/README.org @@ -136,7 +136,7 @@ not contain =:client_id= and =:client_secret=. | =U= | update your profile bio note | | =;= | view instance description for toot at point | | =:= | view followed tags and load a tag timeline | -| =M-:= | view timeline of all followed tags | +| =C-:= | view timeline of all followed tags | | =,= | view favouriters of toot at point | | =.= | view boosters of toot at point | | =/= | switch between mastodon buffers | -- cgit v1.2.3