Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Keep selected message in middle of message list pane

#1910

When reading mail with many unread messages, I quickly end up with the selected message at the bottom of the message list pane, so it's no longer obvious if there are more unread messages. It would be nice if the message list view scrolled so the selected message is never the bottom-most one visible.

Reported by Eric Sharakan · January 9th, 2018 @ 04:30 PM

State: accepted
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to accepted

    Part of the problem is that Apple removed the scrollers. They can be re-enabled in the System Preferences.

    I'm mostly relying on default behavior from the system and it can be tricky to override these things in a robust way. I'll make a note of it though.

    January 10th, 2018 @ 02:14 PM

  2. Eric Sharakan
    Eric Sharakan

    I've already set the pref to restore the scrollbars all the time. My question was whether the selected message could be automatically scrolled into the middle of the pane so I can always see a couple newer messages than the selected one (assuming there are any) in the pane.

    Thanks.

    January 10th, 2018 @ 05:57 PM

  3. benny
    benny

    I think I understood you correctly, but as I noted, it's tricky :) It might be easier and/or more robust if I provided a key binding selector to center the currently selected email.

    Oh, that one already exists (if it works). Try this one:

    `centerSelectionInVisibleArea:`
    

    If it works I should probably document it :)

    January 11th, 2018 @ 08:36 AM

  4. Eric Sharakan
    Eric Sharakan

    Yeah, not only that, but:

    sharakan% egrep centerSelectionInVisibleArea *
    Standard.plist: "^l" = "centerSelectionInVisibleArea:";

    ...and it works great.

    January 11th, 2018 @ 04:40 PM

  5. Stacey Marshall
    Stacey Marshall

    I have been using Control-l ("Control l", Ctrl-L, "C-l") since I switched to MailMate, Don't remember how I found it, perhaps I just used the key one day as an EMACS user. In Emacs pressing the C-l a second time aligns at the the top, and a third time at the bottom, a fourth centers again... should I open a new ticket to request that behaviour?

    March 21st, 2018 @ 12:07 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.