Regular click on a note in NoteList now replaces the current tab content instead of always creating a new tab. Cmd+Click (or Ctrl+Click) opens in a new tab. If the note is already open in any tab, clicking just switches to that tab regardless of modifier key. - NoteItem: simplified to accept single onClickNote callback - NoteList: routes click via metaKey/ctrlKey to onReplaceActiveTab or onSelectNote - useTabManagement: handleReplaceActiveTab checks all tabs before replacing - Extracted loadAndSetTab/isTabOpen/routeNoteClick helpers for code health Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 KiB
10 KiB