1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-01-08 01:51:15 +01:00
tinmop/etc/next-previous-open.lisp
cage 5f00107808 - prevented skipping of statuses when updatig timeline (so i hope);
- added the possibility to update a timeline going backward;
- added two new  key to delete a  status and move to  next or previous
  one.
2020-05-14 16:32:01 +02:00

28 lines
754 B
Common Lisp

(in-package :modules)
(defun open-next ()
"Go to the next message and open it"
(ui:thread-go-down)
(ui:thread-open-selected-message))
(defun open-previous ()
"Go to the previous message and open it"
(ui:thread-go-up)
(ui:thread-open-selected-message))
(defun delete-and-move-next ()
(ui:thread-mark-delete-selected-message)
(ui:thread-open-selected-message))
(defun delete-and-move-previous ()
(ui:thread-mark-delete-selected-message)
(ui:thread-open-selected-message))
(define-key "right" #'open-next *thread-keymap*)
(define-key "left" #'open-previous *thread-keymap*)
(define-key "M-d" #'delete-and-move-next *thread-keymap*)
(define-key "M-u" #'delete-and-move-previous *thread-keymap*)