From 510fd8cbe53abb39cba2c7cbaaefcf2783dc0066 Mon Sep 17 00:00:00 2001
From: "netop://ウィビ" <paul@webb.page>
Date: Fri, 24 Apr 2026 16:37:33 -0700
Subject: Implement v0.6-1.0: shortcuts, format, export/import, splitter,
 timing, APQ

- v0.6: matchShortcut + format(); Cmd+Shift+Enter/W/F + Cmd+Alt+arrows
- v0.7: SessionStore.exportAll/importTabs with version-1 validator
- v0.8: Splitter component + four resize handles persisted under layout.*
- v0.10: createApqFetcher (HTTP-only) wrapping shared http-body helpers
- Drop .svelte re-exports from index.ts for multi-entry JSR/npm publishing
---
 source/library/components/Toolbar.svelte | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'source/library/components/Toolbar.svelte')

diff --git a/source/library/components/Toolbar.svelte b/source/library/components/Toolbar.svelte
index 8c75668..9882b7d 100644
--- a/source/library/components/Toolbar.svelte
+++ b/source/library/components/Toolbar.svelte
@@ -8,6 +8,7 @@
     docsOpen?: boolean;
     extras?: Snippet;
     historyOpen?: boolean;
+    onFormat?: () => void;
     onRun: () => void;
     onSelectOperation?: (name: string | null) => void;
     onToggleDocs?: () => void;
@@ -24,6 +25,7 @@
     docsOpen = false,
     extras,
     historyOpen = false,
+    onFormat,
     onRun,
     onSelectOperation,
     onToggleDocs,
@@ -128,6 +130,9 @@
       {/each}
     </select>
   {/if}
+  {#if onFormat}
+    <button class="toggle" {disabled} onclick={onFormat} type="button">Format</button>
+  {/if}
   {#if extras}{@render extras()}{/if}
   <span class="hint">⌘/Ctrl + Enter</span>
   {#if schemaLoading}
-- 
cgit v1.2.3

