No description
Find a file
randogoth f91484d6d4 cache note metadata at load time to eliminate per-search file I/O
_filterNotes was calling note.readAsStringSync() and _extractTags() for
every note on every keystroke, plus recomputing path.relative() each
time. For large collections with many subdirectories this is O(n * disk).

Fix: build three maps during _loadNotes (which already reads every file
once) and use them in _filterNotes instead of touching the filesystem:
  - _noteRelativePaths: pre-lowercased relative path per note
  - _noteContentLower:  pre-lowercased content for full-text search
  - noteTags:           already existed, now actually used in filter

_filterNotes now does only in-memory map lookups and string.contains
checks — no file reads, no regex, no path computation per keystroke.

Also fix _createNewNote: the Navigator.push was not awaited so
_loadNotes() was never called on return, leaving stale caches after
editing a freshly created note. Now awaits the push and reloads on
return, mirroring the existing-note tap behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-19 17:45:48 +03:00
android rename app ID to com.randogoth.muzzlevelocity 2026-06-19 17:11:01 +03:00
assets app icons 2025-02-22 19:11:10 +02:00
google_fonts added font 2025-02-22 21:14:35 +02:00
ios rename app ID to com.randogoth.muzzlevelocity 2026-06-19 17:11:01 +03:00
lib cache note metadata at load time to eliminate per-search file I/O 2026-06-19 17:45:48 +03:00
linux rename app ID to com.randogoth.muzzlevelocity 2026-06-19 17:11:01 +03:00
macos rename app ID to com.randogoth.muzzlevelocity 2026-06-19 17:11:01 +03:00
web init 2025-02-20 22:40:41 +02:00
windows custom directory 2025-02-21 22:02:06 +02:00
.gitignore init 2025-02-20 22:40:41 +02:00
.metadata init 2025-02-20 22:40:41 +02:00
analysis_options.yaml init 2025-02-20 22:40:41 +02:00
devbox.json devbox setup, dep upgrades, lint fixes, Android build fixes 2026-06-19 17:08:29 +03:00
devbox.lock devbox setup, dep upgrades, lint fixes, Android build fixes 2026-06-19 17:08:29 +03:00
justfile devbox setup, dep upgrades, lint fixes, Android build fixes 2026-06-19 17:08:29 +03:00
pubspec.lock devbox setup, dep upgrades, lint fixes, Android build fixes 2026-06-19 17:08:29 +03:00
pubspec.yaml devbox setup, dep upgrades, lint fixes, Android build fixes 2026-06-19 17:08:29 +03:00
README.md init 2025-02-20 22:40:41 +02:00

muzzlevelocity

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.