XENotes/notes-app#60
Open
yash20720 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
i started implementing notes app.
key features:
Formatting Toolbar (WYSIWYG Control)
Style Selectors: Buttons to switch line elements between H1 (Heading), P (Paragraph), and L (List) block types.
Style Modifiers: B (Bold) toggle (simulated via 1px canvas offset drawing).
Color Palette: 5 color boxes (White, Red, Green, Blue, Yellow) to paint individual blocks dynamically.
Smart List Auto-Numbering
Consecutive list blocks (BLOCK_TYPE_LIST) automatically calculate and display sequential numbers (1., 2., 3., etc.), resetting if interrupted by paragraph/heading lines.
Multi-Tab Document Bar
Supports up to 8 concurrently open tabs.
Integrates an unsaved draft/dirty indicator (displaying * next to the filename when modified) that disappears instantly upon saving.
Integrated Notes Sidebar
Automatically scans the /notes directory (creating it if it does not exist) using kernel VFS listing system calls (_KeOpenDir / _KeReadDir) to populate and load existing notes with one click.
Vim-Inspired Command Bar
Pressing : activates the bottom command box, allowing developer-friendly keyboard shortcuts:
:w — Saves the active note to disk.
:new — Instantly opens a new note tab and directory shortcut.
:q — Closes the application.
Real-time Document Statistics
Displays dynamic counts of lines, words, and characters for the active note on the left side of the bottom status bar.
Format-Preserving Serialization
Notes are saved with a lightweight tag format (e.g., [H][color=FFFF4B4B][bold=1]Heading Text). The load parser parses these tags line-by-line to restore document layouts, colors, and formatting on load.