Maintain position in inbox after deleting selection, relative to surrounding emails

Description

After making a selection of emails and using the delete hotkey, the position of the highlighted email remains where it is relative to the whole inbox, rather than shifting appropriately relative to the deleted emails.

To Reproduce…

Steps to reproduce the behavior:

Using Gmail hotkeys

  1. Make selection of emails using arrow keys and X
  2. Delete emails using # hotkey

Expected Behavior

I expect that, like in Gmail, the position of the highlighted email will remain where it is in the list, rather than X number of emails from the top. The current behavior makes it so that if you are moving down the list to clear things out, you will skip over emails after making a deletion and have to move your cursor back upwards instead of being able to continue from where you are.

Setup

  • OS and Version: Manjaro Linux 20.1
  • Installation Method: AUR
  • Mailspring Version: 1.9.2