Repository navigation
1.0.65
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 transitionsuseVimNavigationhook — 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 guardsuseHintStoreextensions — AddedsessionHintMap/sessionHintTargetMapstate with set/clear actions; deduplicatedHintTargettype to single source inhint-utils- Settings toggle —
vimModeEnabledinuseSettingsStorewith UI toggle in General settings; all vim features gated behind this flag
Hint System (hint-utils.ts)
- Extended
HintTargetkind union with'project'type buildNormalModeTargets()— Generates hint targets for all visible projects and worktrees in normal modeassignSessionHints()— S-prefixed two-letter codes for session tabs (Sa, Sb, Sc…)excludeFirstCharsparameter for S-reservation in worktree/project hint assignmentdispatchHintAction()— 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 fromDEFAULT_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-tabevents 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 overlayvim-navigation-hook.test.ts— Hook keyboard handling, mode switching, hint dispatch, guardshint-utils-extensions.test.ts— Project kinds, session hints, S-reservation, dispatchhint-store-sessions.test.ts— Session hint map state managementsession-tab-hints.test.ts— Badge rendering, visibility, worktree switchingsidebar-hint-badges.test.ts— Project/worktree badge display in normal modehelp-overlay.test.tsx— Overlay rendering, mnemonic highlights, dynamic gridsheader-mode-pill.test.tsx— Mode pill visibility and labelright-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
detectionPathparameter torefreshLanguageinuseProjectStore— 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 withisDestroyed()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 wrapswebContents.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 duringwill-quitto prevent timers from firing after the window is destroyed
Add Android Studio detection and quick action (#138)
- Android project detection: New
project:isAndroidProjectIPC handler that checks forAndroidManifest.xmlin standard locations (app/src/main/and root) and scansbuild.gradle/build.gradle.ktsfiles (both root andapp/) for Android Gradle plugins (com.android.application,com.android.library) - Open in Android Studio: Added
android-studiocase to theopenInAppsystem handler, launching Android Studio viaopen -aon 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...