Skip to content

Focus Mode rail ignores section placement: unified rows are drawn above the accounts #594

Closed

Description

@AlpSha

Summary

In the normal sidebar, the sidebar order follows Settings → Sections. In Focus Mode's icon rail, it does not: the unified folder rows are drawn above the accounts instead of below them.

Version: 1.47.0, built from the v1.47.0 tag on Arch Linux (niri). There are six IMAP/Gmail accounts.

Settings

Settings → Sections:

Setting Value
Section style Unified style
Filters placement Below the accounts
Tags placement Below the accounts
Favorites placement Below the accounts
Contacts placement In the footer

Focus Mode (focus.toml):

enabled = true
start_focused = true
hide_accounts = false
fold_unified = true
rail_sidebar = true

Expected

Focus Mode's rail keeps the same order as the normal sidebar. Normal sidebar (correct):

Inboxes
  account 1 … account 6
Starred
Sent
Drafts
Archive
Junk

Actual

In Focus Mode's rail, the unified rows come first and the accounts are pushed to the end:

[Inboxes]
[Starred]
[Sent]
[Drafts]
[Archive]
[Junk]
(account avatars)

Steps to reproduce

  1. Settings → Sections: set Section style to Unified style and Filters, Tags and Favorites to Below the accounts.
  2. Check that the normal sidebar shows the accounts under Inboxes, followed by Starred, Sent and the other unified rows.
  3. Turn on Focus Mode with Rail sidebar and Fold unified enabled, and Hide accounts off.
  4. The rail lists Starred, Sent, Drafts, Archive and Junk above the account avatars.

Activity

  1. AlpSha commented on Nov 5, 2026

    @AlpSha
    ContributorAuthor

    A follow-up, with a workaround and one more observation.

    Workaround: in Focus Mode, turn Hide the accounts in the sidebar on and Fold up the unified rows off. Then, under Settings → Sidebar → Fold up expanded items, untick Inboxes. The rail then shows the per-account inbox chips under Inboxes, followed by Starred, Sent, Drafts, Archive and Junk, which is the same order as the normal sidebar. A click on a chip opens that account's inbox.

    Observation / feature request: with the account sections visible in the rail, clicking an account's avatar always expands or folds the account. It cannot open the account's inbox. As far as I can tell from src/ui/sidebar/account_section.rs, the rail always wires the header's click to ToggleCollapseLocal, whatever Fold accounts with one click is set to. An option to make a plain click on a rail avatar open that account's inbox, with long-press or the chevron to expand, would make Focus Mode usable without hiding the accounts.

    The ordering bug above still stands whenever the accounts are shown in Focus Mode.

  2. hyprlab commented on Nov 6, 2026

    @hyprlab
    Owner

    Im going to refactor focus mode, it has grown a bit wild and I feel like all it's controls should be consolidated into one settings panel. I'm working on that now and it will be in the next beta build.

  3. hyprlab commented on Nov 8, 2026

    @hyprlab
    Owner

    Agentic reply:

    The beta build is in the repo now. If you already have the beta installed, flatpak update picks it up. If not, download and install it first:

    flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakref

    RPM, Debian and AppImage betas: Beta channel.

  4. hyprlab commented on Nov 12, 2026

    @hyprlab
    Owner

    Agentic reply:

    The build is in the repo now. If you already have Hylki installed, flatpak update picks it up. If not, download and install it first:

    flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.flatpakref

    RPM, Debian and AppImage: Installing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions