Replies: 2 comments
|
+1 I run into this constantly. I prototyped the agents half of this on a branch, with one tweak to the placement: instead of putting the number to the left of everything (which steals width from long agent names), I render it under the status icon on the second line, so the name line keeps its full width: I also capped it at 1–9, since |
|
I would also love to see workspace numbers implemented. An example layout config including [ui.sidebar.spaces]
rows = [
["workspace_number", "state_icon", "workspace"],
["branch", "git_status"],
]And maybe even have additional overridable configuration for the [ui.sidebar.spaces.workspace_number]
zero_based = false # For zero based counting
color = "#aaafff" # or alternatively an e.g. `rainbow` or `gradient` mode |
Uh oh!
There was an error while loading. Please reload this page.
Summary
When the sidebar is in expanded mode (not collapsed via
prefix+b), it would be very helpful to display the index numbers (1, 2, 3...) next to each workspace/space entry and each agent entry.Motivation
herdr already supports indexed keybindings for fast navigation:
switch_workspace = "prefix+shift+1..9"— jump to workspace by indexfocus_agent = "prefix+alt+1..9"— jump to agent by indexHowever, in expanded sidebar mode, there is no visual indicator showing which index corresponds to which workspace or agent. Users have to mentally count the positions to know which number to press.
Interestingly, the collapsed sidebar already shows index numbers (line 692 in
sidebar.rs:format!("{}", visible_idx + 1)), but this information is lost when the sidebar is expanded.Proposed Solution
Show the index number before each workspace entry in
render_workspace_listand before each agent entry inrender_agent_detail. For example:Current expanded sidebar:
Proposed:
Same for the agents panel:
Alternatives
sidebar_show_index = true) for users who prefer a cleaner lookswitch_workspaceorfocus_agentkeybindings are configuredAdditional Context
The implementation should be straightforward — the collapsed mode rendering code (
render_sidebar_collapsed) already has the index logic that can be referenced. The main changes would be inrender_workspace_listandrender_agent_detailinsrc/ui/sidebar.rs.All reactions