Skip to content
Projekte

Über uns

Eine Seitenleiste für herdr im Stil von VS Code: Sie vereint Dateiexplorer und Git-Quellcodeverwaltung in einem Bereich und bietet Vorschauen mit Syntaxhervorhebung, Diffs im Stil von VS Code, ausklappbare Bereiche wie in GitLens und KI-generierte Commit-Nachrichten.

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+1
in 7 days
+5
in 15 days
+14
in 1 month
+31

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Herdr Sidebar

The sidebar your terminal was missing — inspired by VS Code.

A file explorer and a full source-control panel in one dockable herdr pane — activity-bar switching, mouse-driven controls, AI-drafted commit messages, and file previews that open as editor tabs — ephemeral until you double-click to pin one.

Rust herdr Platforms CI License



The sidebar docked beside a 2x2 fleet of Claude Code and Codex agents

If you've ever alt-tabbed out of your terminal just to look at the tree, the diff, or what's staged, this closes that loop.

herdr plugin install alexarthurs/herdr-sidebar/plugins/herdr-sidebar

Tagged releases use SHA-256-verified binaries on supported platforms and fall back to a source build when needed.

Three Views

The activity bar switches Explorer, Search, and Source Control instantly in one process. Use the mouse or press 1, 2, and 3.

Explorer & Preview

Explorer and file preview
  • Navigate a real expandable tree with file icons, hover actions, Git decorations, and m / Ctrl+right-click context menus.
  • Click a file to reuse an ephemeral preview tab; double-click to pin it. Preview in the same tab with Preview opens in: pane, or opt into experimental replace mode: working panes move to a temporary tab while you preview; Esc / q brings them back.
  • Preview text, Markdown, HTML (laid out as text; scripts never run), images, and—when ffmpeg is available—video poster frames. Read-only previews support mouse selection and clipboard copy, including OSC 52 over SSH, and reload on their own when the file changes on disk — immediately when you return to them, or on demand with r.
  • Find files with Ctrl+P; search project contents with Ctrl+F or Ctrl+Shift+F. Search supports case, whole-word, regex, and include/exclude filters.
  • Stage files or folders from the tree without crossing nested-repository boundaries.
  • Opt into a terminal editor for mouse clicks, while Enter keeps the built-in preview.
  • Press e in a text preview for the experimental editor with selection, find, clipboard actions, explicit save, and external-change protection.

Takeover caveat: after a herdr restart or an incomplete restore, move any remaining working panes back manually. Third-party TUIs are not yet verified with takeover; tab remains the default.

Source Control

Source Control view
  • Stage, unstage, discard, commit, inspect diffs, and sync with the upstream.
  • Read a diff unified or side by side: v in the diff toggles old-left / new-right columns, and the choice sticks for later diffs.
  • Click the branch name—in the panel header, a repository row, or the Git footer—to switch branches, create one with New branch…, or track a remote branch. Deleting an unmerged branch requires a separate force-delete confirmation.
  • Toggle changed files between list and folder tree with t, the view button, or Settings. In tree view, use ←→ to fold folders and m to stage or unstage a folder.
  • Use one commit box per repository in multi-repo folders.
  • Draft a commit message with the ✧ button through the local claude CLI, with a filename-based fallback when Claude is unavailable.
  • Browse commits, file history, branches, worktrees, remotes, stashes, and tags.
  • Keep branch and sync controls visible in every sidebar view with the compact Git footer; hide it from Settings if you prefer the extra row.
  • Status refreshes while the pane is focused. To keep a Source Control pane updating as a passive monitor (for example beside an agent), launch it with HERDR_SIDEBAR_BACKGROUND_REFRESH=1 in its environment.

Settings

Sidebar settings

The current version appears at the top. Official GitHub installations offer Update & refresh when a newer stable release is available; linked development checkouts stay untouched.

Settings persist across tabs and restarts. Configure:

  • Unified or separate Explorer and Source Control panes
  • Left/right docking and preferred width
  • Auto-hide in narrow tabs (off by default; see below)
  • Material/emoji icons and VS Code/light/terminal colors
  • Preview syntax theme from syntect's bundled set, kept separately for dark and light color themes (dark: ocean, eighties, mocha, solarized; light: github, ocean, solarized)
  • Tab (default), split-pane, or temporary takeover previews and optional custom editor
  • Source Control list/tree view (shared across sidebars)
  • Hidden files, Git decorations, Git footer, and footer hotkeys
  • Letter shortcuts (on by default)
  • Auto-open, strict open/close toggle, focus-on-open, and live folder following
  • Confirm risky Git ops (off by default; see below)
  • Close emptied tabs (on by default; see below)

Turn Letter shortcuts off to ignore unmodified or Shift-modified letters, numbers, and punctuation in the Explorer tree, Search results, and Source Control list. Text fields and open menus and prompts still accept typing. Navigation keys and existing modifier shortcuts still work. Press F8 or click the gear in any sidebar view to open Settings and turn the shortcuts back on.

Confirm risky Git ops asks y/N before Git actions that rewrite history or touch the remote: Sync (from S, the sync buttons, a repository row, the Git footer in any view, or the commit button when it reads Sync), and the history menus' Checkout, Merge, Cherry-Pick, Revert, and Pop Stash. Fetch, Apply Stash, Stash, and the branch picker never ask. Discard, reset, and deleting a branch, tag, stash, or worktree always ask, whatever the setting.

Close emptied tabs closes a tab once only the sidebar is left in it: exit the last shell with Ctrl+D, or close the last other pane, and the tab goes away as it would without the plugin. The sidebar saves any unfinished commit message first; if it cannot, it stays open and shows why. Tabs that still hold a preview or editor are kept. Turn it off to keep a sidebar-only tab.

Auto-hide below hides the sidebar while the tab is at most that many columns wide (64–200, or off), like herdr's own ui.mobile_width_threshold. The width is the tab area, which excludes herdr's own sidebar. Once the tab is wider than the setting again, the sidebar comes back at the next pane, tab or workspace focus. A sidebar you hid with b stays hidden, and one you open yourself in a narrow tab stays open until the tab has been wide again. With separate panes, only Explorer auto-hides.

When multiple Herdr clients display different tabs, sidebar folder following and automatic refresh use the session's focused tab. A second client's tab catches up on its next focus event.

The sidebar follows a neighbouring pane's working directory by default. A manually chosen folder stays put until that pane changes directory again.

Keys

Explorer / Search Action Source Control Action
↑↓ / jk move Enter stage / unstage file; fold folder
←→ / hl fold / unfold a / u stage all / none
Enter toggle / preview c commit message
Ctrl+P quick open A draft message
Ctrl+F content search S sync
. hidden files o open diff
r refresh r refresh
m context menu m context menu
t open folder in new tab t tree / list
F8 / s settings F8 / s settings
b hide b hide
1 / 2 / 3 change view 1 / 2 / 3 change view

Preview: drag to select (releasing copies, following herdr's copy_on_select), Ctrl/Cmd+C to copy, arrows/PageUp/PageDown or Space/b to scroll, w to toggle wrapping, r to reload, v to switch a diff between unified and side-by-side, and q or Esc to close. Releasing a drag in edit mode (e) copies the same way.

Host keybindings can invoke the direct show-explorer, show-search, show-git, and quick-open actions. For example, bind cmd+p to:

[[keys.command]]
key = "cmd+p"
type = "shell"
command = "herdr plugin action invoke quick-open --plugin herdr-sidebar"

Install & Develop

Requirements: herdr 0.8+. Source builds require Rust 1.89+. A Nerd Font is recommended for material icons; the emoji theme works everywhere.

herdr plugin install alexarthurs/herdr-sidebar/plugins/herdr-sidebar

Local checkout:

cd plugins/herdr-sidebar
cargo build --release
herdr plugin link .

Open or toggle it:

herdr plugin action invoke herdr-sidebar.open-sidebar-windows   # Windows
herdr plugin action invoke herdr-sidebar.open-sidebar           # Linux / macOS

Useful development actions:

Action Purpose
open-sidebar / open-sidebar-windows open, focus, or hide the sidebar
open-git / open-git-windows toggle separate Source Control
show-explorer, show-search, show-git open/focus one activity without toggling
quick-open open/focus the sidebar and show the file picker
redeploy / redeploy-windows refresh running sidebars after a rebuild

Use the -windows suffix for each direct action on Windows.

All docking, metadata, pane creation, and preview control use herdr's socket API directly. The plugin is one Rust crate; optional external tools only enhance Markdown (glow), video posters (ffmpeg), and AI commit drafts (claude).

Screenshots: herdr on Windows Terminal with a Nerd Font.

Ähnliche Projekte entdecken

Wird geladen…