Upgrade Readme

This commit is contained in:
2025-11-11 16:48:22 +01:00
parent 754d6bb269
commit 1d5a0fb39b
4 changed files with 373 additions and 37 deletions

View File

@ -5,6 +5,110 @@ All notable changes to Project Notes will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.3.0] - 2025-11-11
### Added
- **Favorites System** ⭐
- Star notes and folders for quick access
- Favorites section in sidebar with expandable folders
- Persistent storage in `.favorites.json`
- Hover to reveal star buttons on notes/folders
- Complete REST API for favorites management (`/api/favorites`)
- **Comprehensive Keyboard Shortcuts** ⌨️
- 10 global shortcuts for navigation and editing
- `Ctrl/Cmd+K` - Open search modal
- `Ctrl/Cmd+S` - Save note
- `Ctrl/Cmd+D` - Open daily note
- `Ctrl/Cmd+N` - Create new note
- `Ctrl/Cmd+H` - Go home
- `Ctrl/Cmd+B` - Toggle sidebar
- `Ctrl/Cmd+,` - Open settings
- `Ctrl/Cmd+P` - Toggle preview (changed from `/` for AZERTY compatibility)
- `Ctrl/Cmd+Shift+F` - Create new folder
- `Escape` - Close modals
- Full documentation in `docs/KEYBOARD_SHORTCUTS.md`
- Help section on About page
- **Font Customization** 🔤
- 8 font options: JetBrains Mono, Fira Code, Inter, Poppins, Public Sans, Cascadia Code, Source Code Pro, Sans-serif
- 4 size options: Small (14px), Medium (16px), Large (18px), X-Large (20px)
- Font selector in settings modal with live previews
- Preferences saved in localStorage
- **Vim Mode Support** 🎮
- Full Vim keybindings in CodeMirror editor
- hjkl navigation, insert/normal/visual modes
- All standard Vim commands and motions
- Toggle in Settings → Éditeur tab
- Powered by `@replit/codemirror-vim`
- Graceful fallback if package not installed
- **About Page**
- New "About Project Notes" page accessible from sidebar
- Features overview with keyboard shortcuts reference
- Visual guide to all shortcuts with `<kbd>` styling
- Accessible via button next to settings
- **Enhanced Settings Modal**
- Tabbed interface: Thèmes, Polices, Éditeur
- Organized and intuitive navigation
- Visual previews for themes and fonts
- Toggle switches with smooth animations
### Changed
- **Sidebar UI Improvements**
- Increased width from 280px to 300px for better readability
- JetBrains Mono as default font
- Compact spacing throughout
- Root indicator (📁 notes) non-clickable, visually distinct
- "Nouveau dossier" button moved to bottom
- Section titles enlarged for hierarchy
- Settings and About buttons side-by-side at bottom
- **Slash Commands Styling**
- Palette now uses theme colors (var(--bg-secondary), var(--accent-primary))
- Adapts to selected theme automatically
- Consistent with overall UI aesthetic
- **Homepage Layout**
- Favorites section with expandable folders
- Note count in section titles ("📂 Toutes les notes (39)")
- Scrollable favorites list (max 300px height)
- Better organization and hierarchy
- **Preview Toggle Shortcut**
- Changed from `Ctrl+/` to `Ctrl+P` for AZERTY keyboard compatibility
- Updated in code, documentation, and About page
### Fixed
- Slash commands palette colors now respect theme selection
- Modal centering improved for delete confirmations
- Sidebar overflow handling with scrollable sections
- Font size now properly cascades using `rem` units from `:root`
### Technical
- Added `@replit/codemirror-vim` as optional dependency
- Created `vim-mode-manager.js` for Vim mode lifecycle
- Created `font-manager.js` for font and size management
- Created `keyboard-shortcuts.js` for centralized shortcuts
- Created `favorites.js` for favorites UI management
- New backend endpoints: `/api/favorites`, `/api/about`
- Enhanced `theme-manager.js` with tab switching
- CSS toggle switch component added
- Improved error handling for missing packages
### Documentation
- Added `docs/KEYBOARD_SHORTCUTS.md` - Complete shortcuts reference
- Updated README.md with all new features
- Added sections on customization, favorites, and Vim mode
- Updated feature list and usage examples
## [2.2.0] - 2025-11-11
### Added