MCPcopy Create free account
hub / github.com/npmx-dev/npmx.dev / submitSearchQuery

Function submitSearchQuery

app/composables/useCommandPaletteCommands.ts:74–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 async function submitSearchQuery() {
75 const trimmedQuery = query.value.trim()
76 if (!trimmedQuery) return
77
78 close()
79 await navigateTo({
80 name: 'search',
81 query: {
82 q: trimmedQuery,
83 },
84 })
85 }
86
87 const trimmedQuery = computed(() => query.value.trim())
88 const { globalCommands, viewDefinitions } = useCommandPaletteGlobalCommands()

Calls 1

closeFunction · 0.70

Tested by

no test coverage detected