Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Add vim-style hotkeys for calendar period navigation (#5906)

Jacob Beckerman912bdaa966c5
diff --git a/apps/web/src/features/calendar/hooks/use-calendar-hotkeys.ts b/apps/web/src/features/calendar/hooks/use-calendar-hotkeys.ts
index 59d72aa4be..940229bffc 100644
--- a/apps/web/src/features/calendar/hooks/use-calendar-hotkeys.ts
+++ b/apps/web/src/features/calendar/hooks/use-calendar-hotkeys.ts
@@ -56,10 +56,12 @@ export function useCalendarHotkeys(handlers: CalendarHotkeyHandlers) {
);
}
+ // 'k'/'j' are vim-style aliases for the same paging, so the keys that step
+ // through soup lists also step through calendar periods.
group.add(
registerHotkey({
scopeId: handlers.scopeId,
- hotkey: 'p',
+ hotkey: ['p', 'k'],
hotkeyToken: TOKENS.calendar.period.previous,
description: 'Previous period',
keyDownHandler: () => {
@@ -72,7 +74,7 @@ export function useCalendarHotkeys(handlers: CalendarHotkeyHandlers) {
group.add(
registerHotkey({
scopeId: handlers.scopeId,
- hotkey: 'n',
+ hotkey: ['n', 'j'],
hotkeyToken: TOKENS.calendar.period.next,
description: 'Next period',
keyDownHandler: () => {