Skip to content

[Feature]: Saved sidebar views (filter + group + sort, with accent color) #23559

Open

Description

@alvistar

Problem or use case

I work across many projects in one Orca window and switch between the same few sidebar setups all day, e.g. "only project A, grouped by workspace status" or "all projects, grouped by PR status, active only". Each switch today means several clicks in the sidebar options menu (project filter, group by, sort by, visibility toggles). There is no way to save a combination or recall it from the keyboard, and no keybinding action touches filter or grouping (only toggles such as sidebar.left.toggle).

Summary: let me save the current sidebar view and get it back in one keystroke.

Proposed solution

Saved sidebar views: a named snapshot of the view state that already exists (filterRepoIds, groupBy, sortBy, showActiveOnly, the hide* toggles), plus an optional accent color.

  • Create: "Save current view…" in the sidebar options menu. Rename, color and delete live in the same menu. No separate editor.
  • Recall: views are listed in the ⌘J palette, plus a sidebar.view.selectByIndex action (views 1–9), following the existing tab.selectByIndex / workspace.selectByIndex pattern.
  • Active view + accent: applying a view makes it active. If it has a color, a thin accent (Peacock-style, reusing the repo badgeColor picker and formats) shows which view you are in. Any manual change to a snapshotted field deactivates the view and removes the accent.
  • Storage: per profile, in the persisted UI state, since repo IDs are profile-scoped. Deleted repos are dropped from a view on hydration. Desktop-only writes at first, so no strict ui.set schema change is pushed to older hosts.

This works in today's single window and does not depend on multi-window (#5329). If multi-window lands, "accent of the active view" becomes "accent of the window" for free.

Sketches

Hand-drawn HTML using the dark theme tokens from main.css and the real dropdown/sidebar sizes. Dashed blue outlines mark what's new.

1. Save and switch from the sidebar options menu

Image

2. Save current view: the dialog shows exactly what gets captured

Image

3. Switch from ⌘J

Image

4. Knowing which view you're in: A (window border) vs B (sidebar strip)

Image

I'd like to implement this myself. Two questions for maintainers before I start:

  1. Default chord for sidebar.view.selectByIndex: Cmd+Alt+1–9 / Ctrl+Alt+1–9, or unbound by default? (Ctrl+Alt+<n> switches virtual desktops on some Linux desktops.)
  2. Where the accent is drawn (sketch 4): I'd go with A, a 2px border around the window. It is readable at a glance, which is the point of [Feature]: Auto assign colour to active workspace and its tabs bar #6356. B is a 3px strip on the sidebar only, if framing the terminal feels too loud. Happy to go with either.

Alternatives or additional context

Activity

  1. AmethystLiang commented on Sep 28, 2026

    @AmethystLiang
    Contributor

    Thanks for the feedback. Will give it some thought. Makes sense for the multi-window. We may not get to it in the recent weeks due to some other priorities.

  2. alvistar commented on Sep 29, 2026

    @alvistar
    Author

    Thanks! Understood that it's not a priority right now, so to keep it off your plate: I've already built it on my fork, and I've been using it daily.

    Branch: https://github.com/alvistar/orca/tree/main (12 commits on top of main, ~2.4k lines of code + ~1.5k lines of tests)

    What it does, following the proposal above:

    • Save / manage from the sidebar options menu: "Save current view…" captures the project filter, group by, sort, and visibility toggles, plus an optional color. There's a small dialog to rename, recolor, and delete views.
    • Recall from ⌘J and from sidebar.view.selectByIndex (1–9). The action is unbound by default, which answers my question 1: the Ctrl+Alt+<n> clash on Linux desktops made a default feel wrong.
    • Active view: a chip in the sidebar title, and the accent is drawn as a window border (option A from sketch 4). Changing any captured setting by hand deactivates the view. Clearing the view with the chip's × restores the settings you had before applying it.
    • Storage: stored per profile in the persisted UI state. Older hosts keep the new fields unchanged and don't break on them.

    Saved views in the sidebar options menu

    menu

    Save current view

    save-dialog

    ⌘J (shown with the shortcut bound)

    cmdj

    Active view: chip + window accent

    active-accent

    I'm happy to open a PR whenever it suits you. Given the size, I can split it into smaller PRs:

    1. data model, persistence, and store actions (no UI)
    2. menu entry, save dialog, and manage dialog
    3. ⌘J and the shortcut action
    4. active chip, window accent, and restore on clear

    One question: would you take the single-window version now, or would you rather wait for multi-window (#5329) and have the accent follow the window?

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

Metadata

Metadata

Assignees

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