-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathnavigation.ts
30 lines (29 loc) · 924 Bytes
/
navigation.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {Feature, Shortcut} from '../settings'
import {Navigation} from '../roam/navigation'
export const config: Feature = {
id: 'navigation',
name: 'Navigation',
settings: [
{
type: 'shortcut',
id: 'goToTodayPage',
label: 'Go to today page',
initValue: 'ctrl+shift+`',
onPress: () => Navigation.goToTodayPage(),
} as Shortcut,
{
type: 'shortcut',
id: 'goToNextDayPage',
label: 'Go to next day page',
initValue: 'ctrl+shift+ArrowUp',
onPress: () => Navigation.goToNextDayPage(),
} as Shortcut,
{
type: 'shortcut',
id: 'goToPreviousDayPage',
label: 'Go to previous day page',
initValue: 'ctrl+shift+ArrowDown',
onPress: () => Navigation.goToPreviousDayPage(),
} as Shortcut,
],
}