Skip to content

feat(ui): multi-folder explorer with favorites and star#1

Open
hoiyada7-maker wants to merge 8 commits into
mainfrom
feat/sidebar-layout
Open

feat(ui): multi-folder explorer with favorites and star#1
hoiyada7-maker wants to merge 8 commits into
mainfrom
feat/sidebar-layout

Conversation

@hoiyada7-maker
Copy link
Copy Markdown
Owner

Summary

  • Multi-folder Explorer: Sidebar header renamed to EXPLORER; single rootPath replaced with a persisted folders[] list. Existing single-folder session auto-migrates.
  • Add/close folders: FolderPlus button in header opens folder picker. Each section has a hover-revealed X to close that folder.
  • Star (favorites): Star button on each file row; click toggles favorites with filled-star visual. State persisted to localStorage.
  • Favorites section: Starred files collected at top of panel in collapsible section; drag-to-reorder supported.

New files

  • src/components/files/root-folder.tsx — collapsible per-root folder section with close button
  • src/components/files/favorites.tsx — favorites section with drag reorder

Test plan

  • Open multiple folders → each appears as a separate collapsible section
  • Close folder button (hover to reveal) removes only that folder
  • Star a .md file → appears in Favorites section
  • Unstar → removed from Favorites
  • Drag favorites to reorder, persists after reload
  • Existing single-folder session migrates to multi-folder on first load
  • tsc clean ✓

🤖 Generated with Claude Code

hoiyada7-maker and others added 8 commits May 30, 2026 20:46
- Right-click on sidebar items now shows Copy Path and Copy Relative Path
- Added hide/show titlebar toggle button in breadcrumb bar
- Moved reading mode and theme buttons from titlebar to breadcrumb
- Extracted ThemeButton as a standalone reusable component
- Added visual separator (border-left) between view controls and file actions
- Fixed MSVC build environment via .cargo/config.toml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove TAURI_SIGNING_PRIVATE_KEY requirement
- Disable createUpdaterArtifacts at build time via node one-liner
- Add workflow_dispatch input so release can be triggered manually
- Bump actions/checkout and actions/cache to v4

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The file had hardcoded Windows CC/CXX/AR/LIB paths that broke Linux and
macOS CI builds. Added to .gitignore so it stays locally for dev but
never reaches CI runners (which auto-detect MSVC or use system toolchain).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- New Tauri command `reveal_in_file_manager`:
  Windows: opens parent folder for files, folder itself for dirs
  macOS: `open -R` to reveal in Finder
  Linux: xdg-open on parent dir
- Context menu shows Reveal in Explorer for both files and folders

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1. Explorer panel — sidebar header renamed to EXPLORER, single
   rootPath replaced with a persisted multi-folder list. Existing
   single-folder session is auto-migrated on first load.

2. Add/close folders — FolderPlus button in header opens a folder
   picker and appends to the list. Each root-folder section has an X
   button (hover-revealed) that removes it from the panel.

3. Star icon on files — each .md file row gets a star button to the
   right of the stage button. Click toggles favorites, filled star
   when active. State persisted to localStorage.

4. Favorites section — starred files appear at the top of the panel
   in a collapsible Favorites section with drag-to-reorder support.

New files: root-folder.tsx, favorites.tsx
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant