docs/.vitepress/theme/searchState.ts

78ea9fc554970c86ce26acb3978ead8147153dad
wotaku/docs/.vitepress/theme/searchState.ts

7 lines · 124 bytes

1import { ref } from 'vue'
2
3export const searchOpen = ref(false)
4
5export function openSearch() {
6  searchOpen.value = true
7}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form