Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Navigation: a mouse's back and forward buttons go back and forward, like ⌘[ and ⌘]
christianmateafe457f85cd
diff --git a/app/e2e/commands.spec.ts b/app/e2e/commands.spec.tsindex 644d2605..179a8770 100644--- a/app/e2e/commands.spec.ts+++ b/app/e2e/commands.spec.ts@@ -586,3 +586,20 @@ test('returning to a note keeps its reading tab and scroll position', async () =await expect(page.getByTestId('note-mine')).toContainText('Discussion point 70.')} finally { await app.close() }})++test("a mouse's back and forward buttons move through pages like ⌘[ and ⌘]", async () => {+ const { app, page } = await launch()+ try {+ await page.keyboard.press('Meta+2')+ await expect(page.getByTestId('chat-page')).toBeVisible()+ // the side buttons as Chromium gets them from the mouse (a Logitech's back and forward)+ const cdp = await page.context().newCDPSession(page)+ const side = async (button: 'back' | 'forward') => {+ for (const type of ['mousePressed', 'mouseReleased'] as const) await cdp.send('Input.dispatchMouseEvent', { type, x: 400, y: 300, button, clickCount: 1 })+ }+ await side('back')+ await expect(page.getByTestId('home')).toBeVisible()+ await side('forward')+ await expect(page.getByTestId('chat-page')).toBeVisible()+ } finally { await app.close() }+})diff --git a/app/src/renderer/src/App.tsx b/app/src/renderer/src/App.tsxindex 41bd99f4..15e8606f 100644--- a/app/src/renderer/src/App.tsx+++ b/app/src/renderer/src/App.tsx@@ -168,8 +168,16 @@ export function App() {if (e.code === 'BracketLeft') { e.preventDefault(); back() }if (e.code === 'BracketRight') { e.preventDefault(); forward() }}+ // a mouse's side buttons (a Logitech's back and forward) are buttons 3 and 4, and do what ⌘[ and ⌘] do+ const onMouse = (e: MouseEvent) => {+ if (e.button !== 3 && e.button !== 4) return+ e.preventDefault()+ if (document.querySelector('dialog:modal, [aria-modal="true"]')) return+ if (e.button === 3) back(); else forward()+ }window.addEventListener('keydown', onKey, true)- return () => window.removeEventListener('keydown', onKey, true)+ window.addEventListener('mouseup', onMouse, true)+ return () => { window.removeEventListener('keydown', onKey, true); window.removeEventListener('mouseup', onMouse, true) }}, [ready, holding])const open = (id: string) => { setSearching(false); go(`/note/${id}`) }/** A citation opens its matching notes paragraph or transcript segment. */