@gmickel/gno 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmickel/gno",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Local semantic search for your documents. Index Markdown, PDF, and Office files with hybrid BM25 + vector search.",
5
5
  "keywords": [
6
6
  "embeddings",
@@ -88,6 +88,7 @@
88
88
  "franc": "^6.2.0",
89
89
  "lucide-react": "^0.562.0",
90
90
  "markitdown-ts": "^0.0.8",
91
+ "minimatch": "^10.1.1",
91
92
  "nanoid": "^5.1.6",
92
93
  "node-llama-cpp": "^3.14.5",
93
94
  "officeparser": "^5.2.2",
@@ -95,7 +96,6 @@
95
96
  "react": "^19.2.3",
96
97
  "react-dom": "^19.2.3",
97
98
  "react-markdown": "^10.1.0",
98
- "rehype-highlight": "^7.0.2",
99
99
  "rehype-sanitize": "^6.0.0",
100
100
  "shiki": "^3.20.0",
101
101
  "sqlite-vec": "^0.1.7-alpha.2",
@@ -22,13 +22,11 @@ export interface Shortcut {
22
22
  skipInInput?: boolean;
23
23
  }
24
24
 
25
- /** Platform detection for modifier key display */
26
- export const isMac =
27
- typeof navigator !== "undefined" &&
28
- navigator.platform.toUpperCase().includes("MAC");
29
-
30
- /** Modifier key symbol */
31
- export const modKey = isMac ? "⌘" : "Ctrl";
25
+ /**
26
+ * Web apps use Ctrl on all platforms to avoid browser shortcut conflicts.
27
+ * Cmd+N/K/T etc are reserved by browsers on Mac (new window, location bar, new tab).
28
+ */
29
+ export const modKey = "Ctrl";
32
30
 
33
31
  /**
34
32
  * Check if event target is an input element
@@ -56,10 +54,8 @@ export function useKeyboardShortcuts(shortcuts: Shortcut[]): void {
56
54
  useEffect(() => {
57
55
  const handler = (e: KeyboardEvent) => {
58
56
  for (const shortcut of memoizedShortcuts) {
59
- // Check modifiers
60
- const metaMatch = shortcut.meta
61
- ? e.metaKey || e.ctrlKey
62
- : !e.metaKey && !e.ctrlKey;
57
+ // Check modifiers (always Ctrl, never Cmd - avoids browser conflicts)
58
+ const metaMatch = shortcut.meta ? e.ctrlKey : !e.ctrlKey;
63
59
  const shiftMatch = shortcut.shift ? e.shiftKey : !e.shiftKey;
64
60
 
65
61
  // Check key