feat: improve related notes algorithm and add seed data

- Add multilingual stop words (English + Spanish) for better matching
- Add technical keywords set for relevance scoring
- Improve scoring weights: tags +3, title matches +3
- Fix false positives between unrelated notes
- Add README with usage instructions
- Add 47 seed examples for testing
- Update quick add shortcut behavior
- Add project summary

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 15:09:20 -03:00
parent 8b77c7b5df
commit cc4b2453b1
6 changed files with 524 additions and 26 deletions

View File

@@ -62,11 +62,18 @@ export function QuickAdd() {
// Focus on keyboard shortcut
useEffect(() => {
const handleGlobalKeyDown = (e: KeyboardEvent) => {
if (e.key === 'n' && (e.metaKey || e.ctrlKey)) {
// Ctrl+N or Cmd+N to focus quick add
if ((e.key === 'n' && (e.metaKey || e.ctrlKey)) || (e.key === 'n' && e.altKey)) {
e.preventDefault()
inputRef.current?.focus()
inputRef.current?.select()
setIsExpanded(true)
}
// Escape to blur
if (e.key === 'Escape' && document.activeElement === inputRef.current) {
inputRef.current?.blur()
setIsExpanded(false)
}
}
window.addEventListener('keydown', handleGlobalKeyDown)
return () => window.removeEventListener('keydown', handleGlobalKeyDown)