You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When entering workspace navigation mode (prefix + w), users can jump directly to any workspace using number keys (1..9). To make this visual and intuitive without cluttering the UI, we propose dynamically replacing the workspace state_icon (or state_text) token with the 1-based index number (1, 2, 3...) specifically while in navigation mode. This applies to all workspace entries in sidebar visual order, including grouped worktree workspaces.
Context & Current Behavior
Collapsed Sidebar: Always displays numbers (1, 2, 3...) next to workspace icons.
Expanded Sidebar: Renders standard metadata tokens (e.g. state_icon, workspace, branch, git_status). However, when pressing prefix + w to enter Mode::Navigate, users only see workspace names and status dots, requiring them to count rows to know which number key (1..9) targets which workspace.
Visual Order Alignment: Herdr's indexed_switch_workspace resolves key numbers based on the visual order of entries in the sidebar (including grouped/indented worktrees).
requested change
Proposed Feature: Swap state_icon with Index Number on prefix + w
Instead of permanently adding a new index column or shifting text width, we can swap the leading status token dynamically during navigation:
Normal Mode:
Sidebar renders workspace status dots (state_icon) and titles as usual (including indented worktree members):
Navigation Mode (prefix + w):
The state_icon (or state_text) token on every workspace row temporarily transforms into its visual 1-based index number badge:
On Exit:
Upon selecting a workspace or pressing Esc, all index numbers instantly revert back to normal state_icon status dots.
why you want this
Zero Layout Shift: Replaces existing status dot width directly, avoiding layout shifts or text truncation in tight sidebar viewports.
Worktree-Aware: Works seamlessly across both top-level workspaces and grouped/indented worktrees because index numbers strictly match Herdr's visual row ordering for key navigation.
Clean & Contextual: The interface remains clean during normal work, but instantly reveals target numbers the moment navigation mode (prefix + w) is activated.
Consistency: Aligns the direct number-key navigation experience of the expanded sidebar with the collapsed sidebar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
Summary
When entering workspace navigation mode (
prefix + w), users can jump directly to any workspace using number keys (1..9). To make this visual and intuitive without cluttering the UI, we propose dynamically replacing the workspacestate_icon(orstate_text) token with the 1-based index number (1,2,3...) specifically while in navigation mode. This applies to all workspace entries in sidebar visual order, including grouped worktree workspaces.Context & Current Behavior
1,2,3...) next to workspace icons.state_icon,workspace,branch,git_status). However, when pressingprefix + wto enterMode::Navigate, users only see workspace names and status dots, requiring them to count rows to know which number key (1..9) targets which workspace.indexed_switch_workspaceresolves key numbers based on the visual order of entries in the sidebar (including grouped/indented worktrees).requested change
Proposed Feature: Swap
state_iconwith Index Number onprefix + wInstead of permanently adding a new index column or shifting text width, we can swap the leading status token dynamically during navigation:
Normal Mode:
Sidebar renders workspace status dots (
state_icon) and titles as usual (including indented worktree members):Navigation Mode (
prefix + w):The
state_icon(orstate_text) token on every workspace row temporarily transforms into its visual 1-based index number badge:On Exit:
Upon selecting a workspace or pressing
Esc, all index numbers instantly revert back to normalstate_iconstatus dots.why you want this
prefix + w) is activated.All reactions