Skip to content

1.0.65

Choose a tag to compare

@morapelker morapelker released this 18 Mar 13:04
· 2510 commits to main since this release

What's Changed

feat: vim-style keyboard navigation system (#141)

Implements a complete vim-style modal keyboard navigation system for Hive, gated behind a user setting. This enables power users to navigate projects, worktrees, sessions, and sidebar tabs entirely from the keyboard using familiar vim idioms.

Core Infrastructure

  • useVimModeStore — New Zustand store tracking normal/insert mode state with help overlay visibility and active-element blur on mode transitions
  • useVimNavigation hook — Central keyboard event handler with mode transitions (Escape → normal, i/Enter → insert), single-key shortcuts (c/f/d/s/r/t for sidebar tabs, n/p for project navigation), two-letter hint code dispatch (uppercase A-Z enters pending mode, second key completes dispatch), focus tracking, and input/textarea guards
  • useHintStore extensions — Added sessionHintMap/sessionHintTargetMap state with set/clear actions; deduplicated HintTarget type to single source in hint-utils
  • Settings toggle — vimModeEnabled in useSettingsStore with UI toggle in General settings; all vim features gated behind this flag

Hint System (hint-utils.ts)

  • Extended HintTarget kind union with 'project' type
  • buildNormalModeTargets() — Generates hint targets for all visible projects and worktrees in normal mode
  • assignSessionHints() — S-prefixed two-letter codes for session tabs (Sa, Sb, Sc…)
  • excludeFirstChars parameter for S-reservation in worktree/project hint assignment
  • dispatchHintAction() — Centralized action dispatcher (moved from ProjectFilter to shared module)
  • Plus-button hint targets for worktree creation with auto-expand of collapsed projects

UI Components

  • Header mode pill — NORMAL/INSERT indicator badge in the app header
  • HelpOverlay (? key) — Full-screen overlay listing all vim shortcuts with mnemonic letter highlighting (e.g., Changes, Files, Diffs, Setup, Run, Terminal), dynamic worktree/session hint grids from live store data, and system shortcuts from DEFAULT_SHORTCUTS
  • Session tab hint badges — S-prefixed badges (Sa, Sb…) on session tabs in normal mode, hidden in insert mode, recomputed on worktree switch
  • Sidebar hint badges — Project and worktree hint badges visible in normal mode; project badge rendered left of chevron, plus badge next to + button
  • FileSidebar tab switching — Custom hive:right-sidebar-tab events for vim-driven tab navigation with mnemonic highlighting on tab labels

Test Coverage (8 new test files, ~1,900 lines)

  • vim-mode-store.test.ts — Store mode transitions and help overlay
  • vim-navigation-hook.test.ts — Hook keyboard handling, mode switching, hint dispatch, guards
  • hint-utils-extensions.test.ts — Project kinds, session hints, S-reservation, dispatch
  • hint-store-sessions.test.ts — Session hint map state management
  • session-tab-hints.test.ts — Badge rendering, visibility, worktree switching
  • sidebar-hint-badges.test.ts — Project/worktree badge display in normal mode
  • help-overlay.test.tsx — Overlay rendering, mnemonic highlights, dynamic grids
  • header-mode-pill.test.tsx — Mode pill visibility and label
  • right-sidebar-tab-event.test.tsx — Custom event tab switching

Files Changed

  • 30 files changed, ~3,800 additions, ~88 deletions
  • New files: useVimModeStore.ts, useVimNavigation.ts, HelpOverlay.tsx, IMPLEMENTATION_VIM.md, 8 test files
  • Modified: AppLayout.tsx, Header.tsx, FileSidebar.tsx, SessionTabs.tsx, ProjectList.tsx, ProjectItem.tsx, WorktreeItem.tsx, ProjectFilter.tsx, SettingsGeneral.tsx, SessionView.tsx, BottomPanel.tsx, LeftSidebar.tsx, hint-utils.ts, useHintStore.ts, useSettingsStore.ts, store/hook barrel exports

Auto-detect project language from worktree path (#140)

  • Adds optional detectionPath parameter to refreshLanguage in useProjectStore — allows callers to specify an alternate filesystem path for language detection instead of always using the project root
  • Auto-detects project language on worktree selection in useWorktreeStore — when a worktree is selected and its parent project has no detected language or custom icon, language detection is triggered using the worktree's path as a fire-and-forget side effect
  • Improves language detection accuracy for projects where the main project root may not contain representative source files (e.g., when worktrees are the primary working directories)

Fix destroyed BrowserWindow crashes with isDestroyed() guards (#139)

  • Guard all webContents.send() calls with isDestroyed() checks across file-tree handlers, git-file handlers, menu, and updater service to prevent "object has been destroyed" runtime crashes
  • Introduce safeSend() helper in the updater service that wraps webContents.send() with a destruction check, replacing 7 direct calls
  • Add cleanup() method to the updater service that clears the initial check timeout and periodic interval, called during will-quit to prevent timers from firing after the window is destroyed

Add Android Studio detection and quick action (#138)

  • Android project detection: New project:isAndroidProject IPC handler that checks for AndroidManifest.xml in standard locations (app/src/main/ and root) and scans build.gradle / build.gradle.kts files (both root and app/) for Android Gradle plugins (com.android.application, com.android.library)
  • Open in Android Studio: Added android-studio case to the openInApp system handler, launching Android Studio via open -a on macOS
  • Quick action button: For Kotlin or Java projects detected as Android, a new "Android Studio" button with the official Android Studio SVG icon appears in the QuickActions bar, matching the existing Xcode integration pattern for Swift projects
  • Full IPC wiring: Preload bridge exposes window.projectOps.isAndroidProject() with matching TypeScript type declarations

Add vim-style modal navigation with hjkl, hints, and help overlay (#137)

Description

This PR implements a comprehensive vim-style modal input system for Hive, enabling keyboard-driven navigation without requiring mouse interaction. The system includes two modes (normal and insert), permanent hint badges on worktrees/projects/sessions, hjkl/arrow key navigation, and an interactive help overlay.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🎨 UI/UX improvement

Changes Made

New Files

  • **`src/renderer/src/stor...