Skip to content

YASSER-27/Note-Studio

Repository files navigation

📝 NoteAI Studio

png

🚀 Note Studio - Complete Setup Guide

📁 Final Project Structure

note-studio/
│
├── src/
│   ├── components/
│   │   ├── TitleBar.jsx       ✅ Window controls
│   │   ├── MenuBar.jsx        ✅ NEW - Menu bar with all options
│   │   ├── Sidebar.jsx        ✅ File explorer
│   │   └── EditorContainer.jsx ✅ Editor & tabs
│   │
│   ├── App.jsx                ✅ Main component (updated)
│   ├── App.css                ✅ Updated styles
│   └── main.jsx
│
├── electron/
│   └── main.js                ✅ Updated with new features
│
├── assets/
│   └── icon.png
│
├── package.json               ✅ Updated dependencies
├── vite.config.js

🎯 New Features Added

1. Menu Bar (NEW!)

  • File menu with all file operations
  • Edit menu with copy/paste/delete
  • Terminal menu for terminal access
  • View menu for navigation
  • Recovery menu for backups

2. Auto-Save & Backup System

  • Automatic backup every 5 minutes
  • Saves project state to prevent data loss
  • Keep last 10 backups automatically
  • Can be enabled/disabled from menu

3. Export Project as ZIP 📦

  • Export entire project to ZIP file
  • Choose save location
  • Preserves folder structure
  • Shows file size after export

4. Load Project from ZIP 📥

  • Import projects from ZIP files
  • Automatically extracts and opens
  • Perfect for sharing projects

5. Drag & Drop File Moving 🔄

  • Drag files between folders
  • Visual feedback with drop zones
  • Updates tabs automatically
  • Prevents invalid moves

6. Keyboard Shortcuts ⌨️

All shortcuts accessible from menu:

  • Ctrl+Shift+N - New Project
  • Ctrl+N - New Tab
  • Ctrl+O - Open Folder
  • Ctrl+L - Load Project
  • Ctrl+S - Save
  • Ctrl+E - Export ZIP
  • Alt+A - New File
  • Ctrl+R - Terminal
  • Ctrl+B - Toggle Sidebar

v1.0.0

png png

v2.0.0

png png

v3.0.0 SOON (need more fix)

png png png png png

📦 Installation Steps

Step 1: Install Dependencies

npm install

This will install:

  • archiver - For ZIP export
  • extract-zip - For ZIP import
  • All existing dependencies

Step 2: Create Components Folder

mkdir src/components

Step 3: Add All Component Files

Place these files in src/components/:

  1. ✅ TitleBar.jsx
  2. ✅ MenuBar.jsx (NEW)
  3. ✅ Sidebar.jsx
  4. ✅ EditorContainer.jsx
  5. ✅ ProjectModal.jsx

Step 4: Update Main Files

Replace these files with updated versions:

  • src/App.jsx - Now imports MenuBar
  • src/App.css - Updated with menu styles
  • electron/main.js - Added new features
  • package.json - Added archiver & extract-zip

Step 5: Run Development

npm run electron-dev

Step 6: Build for Production

npm run dist

🎨 CSS Updates

The new CSS includes:

  • ✅ Menu bar styles
  • ✅ Dropdown menu animations
  • ✅ Keyboard shortcut displays
  • ✅ Drop zone visual feedback
  • ✅ Loading animations
  • ✅ Better context menu

🔧 Menu Bar Options

File Menu

  • New Project
  • New File
  • New Tab
  • Open Folder
  • Load Project (NEW)
  • Save / Save As
  • Export as ZIP (NEW)
  • Close Tab

Edit Menu

  • Copy/Paste/Delete
  • Keyboard Shortcuts (NEW)

Terminal Menu

  • Open Terminal

View Menu

  • Next/Previous Tab
  • Toggle Sidebar

Recovery Menu (NEW) 💾

  • Auto-Save Settings - Enable/disable
  • Restore Backup - Recover previous state
  • View All Backups - Open backup folder

🔄 Auto-Save Details

How It Works:

  1. Automatically backs up project every 5 minutes
  2. Stores in: %AppData%/note-studio/backups/
  3. Keeps last 10 backups
  4. Can be toggled on/off from menu

Backup Location:

Windows: C:\Users\YourName\AppData\Roaming\note-studio\backups\
Mac: ~/Library/Application Support/note-studio/backups/
Linux: ~/.config/note-studio/backups/

📝 Usage Examples

Export Project:

  1. Open a project
  2. Menu → File → Export as ZIP
  3. Choose location
  4. Done! ✅

Load Project:

  1. Menu → File → Load Project
  2. Select ZIP file
  3. Project opens automatically ✅

Restore Backup:

  1. Menu → Recovery → Restore Backup
  2. Select from last 5 backups
  3. Project restored ✅

Drag & Drop:

  1. Drag any file/folder
  2. Drop on target folder
  3. File moves automatically ✅

🎯 What's Different?

Before:

  • No menu bar
  • No auto-save
  • No export/import
  • Manual file organization

After:

  • ✅ Professional menu bar
  • ✅ Auto-save every 5 minutes
  • ✅ Export/import projects
  • ✅ Drag & drop anywhere
  • ✅ Backup recovery system
  • ✅ All shortcuts in one place

🐛 Troubleshooting

If archiver is not found:

npm install archiver --save

If extract-zip is not found:

npm install extract-zip --save

If menu doesn't appear:

Check that MenuBar is imported in App.jsx:

import MenuBar from './components/MenuBar';

If backups don't work:

Check permissions in AppData folder

✨ Pro Tips

  1. Enable Auto-Save immediately - Prevents data loss
  2. Export before major changes - Easy rollback
  3. Use keyboard shortcuts - Faster workflow
  4. Organize with drag & drop - Quick restructuring
  5. Check backups regularly - Peace of mind

🎉 You're Ready!

Your Note Studio now has:

  • ✅ Complete menu system
  • ✅ Auto-save protection
  • ✅ Project export/import
  • ✅ Drag & drop organization
  • ✅ Professional interface
  • ✅ All shortcuts accessible

Enjoy coding! 🚀

About

native desktop applications to provide a seamless coding experience.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages