Skip to content

feat: add gg/G keyboard shortcuts for top/bottom jump#238

Merged
shuntaka9576 merged 1 commit intomainfrom
feat/vim-jump-shortcuts
May 1, 2026
Merged

feat: add gg/G keyboard shortcuts for top/bottom jump#238
shuntaka9576 merged 1 commit intomainfrom
feat/vim-jump-shortcuts

Conversation

@shuntaka9576
Copy link
Copy Markdown
Owner

@shuntaka9576 shuntaka9576 commented May 1, 2026

Summary

  • Add gg / G vim-style jump-to-top / jump-to-bottom shortcuts to the main panel and apps view
  • gg uses a 500ms chord window between the two g presses; G fires on a single Shift+g
  • Document both shortcuts in the keybinding help overlay (?)

Changes

  • src/App.tsx: added gPressedAtRef chord tracker and g / G cases to both the main-view and apps-view keyboard handlers. Both flip repositionCancelledRef like the existing j / k paths so the auto-cursor logic doesn't override the jump
  • src/components/keybind-help.tsx: added gg (Jump to top) and G (Jump to bottom) entries between k and Enter

Add vim-style gg/G shortcuts to the main panel and apps view to jump to
the first/last item in the navigable list. The gg chord uses a 500ms
window between the two g presses; G fires on a single Shift+g.

Both shortcuts are documented in the keybinding help overlay.
@shuntaka9576 shuntaka9576 self-assigned this May 1, 2026
@shuntaka9576 shuntaka9576 marked this pull request as ready for review May 1, 2026 06:51
@shuntaka9576 shuntaka9576 merged commit 2384a43 into main May 1, 2026
1 check passed
@shuntaka9576 shuntaka9576 deleted the feat/vim-jump-shortcuts branch May 1, 2026 06:51
@github-actions github-actions Bot mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant