aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-20 21:59:37 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-20 21:59:37 +0100
commit6b96ee401ff5eb2d3e459660d6f58abc59915068 (patch)
tree629cb86861d5953a187bc5f25a228c1eb50f0592 /lisp
parente941cd79e50deb84c91788fa0a9e8b9c5b3ec460 (diff)
rename bookmark toggle
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-discover.el2
-rw-r--r--lisp/mastodon-toot.el2
-rw-r--r--lisp/mastodon.el2
3 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-discover.el b/lisp/mastodon-discover.el
index 57c1aa0..b549ce1 100644
--- a/lisp/mastodon-discover.el
+++ b/lisp/mastodon-discover.el
@@ -53,7 +53,7 @@
("b" "Boost" mastodon-toot--boost)
("f" "Favourite" mastodon-toot--favourite)
("c" "Toggle hidden text (CW)" mastodon-tl--toggle-spoiler-text-in-toot)
- ("k" "Bookmark toot" mastodon-toot--bookmark-toot-toggle)
+ ("k" "Bookmark toot" mastodon-toot--toggle-bookmark)
("v" "Vote on poll" mastodon-tl--poll-vote)
("n" "Next" mastodon-tl--goto-next-toot)
("p" "Prev" mastodon-tl--goto-prev-toot)
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index df9a22c..0a3b602 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -395,7 +395,7 @@ TYPE is a symbol, either 'favourite or 'boost."
(mastodon-toot--toggle-boost-or-favourite 'favourite))
;; TODO maybe refactor into boost/fave fun
-(defun mastodon-toot--bookmark-toot-toggle ()
+(defun mastodon-toot--toggle-bookmark ()
"Bookmark or unbookmark toot at point."
(interactive)
(let* ( ;(toot (mastodon-tl--property 'toot-json))
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index ae8a795..075aa6a 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -169,6 +169,7 @@ Use. e.g. \"%c\" for your locale's date and time format."
(define-key map (kbd "b") #'mastodon-toot--toggle-boost)
(define-key map (kbd "c") #'mastodon-tl--toggle-spoiler-text-in-toot)
(define-key map (kbd "f") #'mastodon-toot--toggle-favourite)
+ (define-key map (kbd "k") #'mastodon-toot--toggle-bookmark)
(define-key map (kbd "r") #'mastodon-toot--reply)
;; this is now duplicated by 'g', cd remove/use for else:
(define-key map (kbd "u") #'mastodon-tl--update)
@@ -194,7 +195,6 @@ Use. e.g. \"%c\" for your locale's date and time format."
(define-key map (kbd "R") #'mastodon-views--view-follow-requests)
(define-key map (kbd "U") #'mastodon-profile--update-user-profile-note)
(define-key map (kbd "v") #'mastodon-tl--poll-vote)
- (define-key map (kbd "k") #'mastodon-toot--bookmark-toot-toggle)
(define-key map (kbd "K") #'mastodon-profile--view-bookmarks)
(define-key map (kbd "I") #'mastodon-views--view-filters)
(define-key map (kbd "G") #'mastodon-views--get-follow-suggestions)