aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-29 16:38:36 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-30 10:51:47 +0100
commited41f1ce270a25e80b9e75d9da23cc6a7749b9a7 (patch)
tree083d2fce9386eda119da202e5650b1bd71f2b757
parent9f5ebd694be8033b3ea79b6e6f56ec777bbdfb80 (diff)
edit scheduled post keybindings
-rw-r--r--lisp/mastodon-tl.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index f28c7c5..24887b6 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -264,6 +264,8 @@ types of mastodon links and not just shr.el-generated ones.")
(let ((map (make-sparse-keymap)))
(define-key map (kbd "r") 'mastodon-tl--reschedule-toot)
(define-key map (kbd "c") 'mastodon-tl--cancel-scheduled-toot)
+ (define-key map (kbd "e") 'mastodon-tl--edit-scheduled-as-new)
+ (define-key map (kbd "<return>") 'mastodon-tl--edit-scheduled-as-new)
(keymap-canonicalize map))
"Keymap for when point is on a scheduled toot.")
@@ -1879,7 +1881,7 @@ If ID, just return that toot."
" ------------\n\n")
'success)
(mastodon-tl--set-face
- "[n/p - prev/next\n r - reschedule\n c - cancel]\n\n"
+ "[n/p - prev/next\n r - reschedule\n e/RET - edit toot\n c - cancel]\n\n"
'font-lock-comment-face))
(mapc (lambda (x)
(mastodon-tl--insert-scheduled-toot x))
@@ -1916,6 +1918,7 @@ If ID, just return that toot."
(defun mastodon-tl--cancel-scheduled-toot (&optional id no-confirm)
"Cancel the scheduled toot at point.
+ID is that of the scheduled toot to cancel.
NO-CONFIRM means there is no ask or message, there is only do."
(interactive)
(let* ((id (or id (get-text-property (point) 'id)))