Got it! Had to add a method to a few of the modes, and then bind a key to that method.
startup.rb:
class Redwood::ThreadIndexMode
def toggle_archived_and_deleted
t = cursor_thread or return
multi_toggle_archive [t]
multi_toggle_deleted [t]
end
end
class Redwood::InboxMode
def archive_and_delete
t = cursor_thread or return
multi_archive [t]
multi_toggle_deleted [t]
end
end
class Redwood::ThreadMode
def archive_and_delete_and_next
archive_and_then { delete_and_next }
end
end
and keybindings.rb:
modes["inbox-mode"].keymap.add :archive_and_delete, "Archive and delete", :backspace
modes["thread-index-mode"].keymap.add :toggle_archived_and_deleted, "Archive and delete thread", :backspace
modes["thread-view-mode"].keymap.add :archive_and_delete_and_next, "Archive and delete thread, then view next", :backspace
Hope this helps someone out!
—
Reply to this email directly or view it on GitHub.