MCPcopy Create free account
hub / github.com/massCodeIO/massCode / search

Function search

src/renderer/composables/spaces/notes/useNoteSearch.ts:31–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29// --- Search ---
30
31async function search() {
32 if (searchQuery.value) {
33 if (!isSearch.value) {
34 saveNotesStateSnapshot('beforeSearch')
35 }
36
37 isSearch.value = true
38 isRestoreStateBlocked.value = false
39
40 await getNotes()
41 selectFirstNote()
42 searchSelectedIndex.value = 0
43 }
44 else {
45 isSearch.value = false
46 }
47}
48
49function selectSearchNote(index: number) {
50 if (

Callers

nothing calls this directly

Calls 3

getNotesFunction · 0.90
selectFirstNoteFunction · 0.90
saveNotesStateSnapshotFunction · 0.85

Tested by

no test coverage detected