Skip to content

fix: g waits for second keypress, gg works as two-key command#12

Merged
oribarilan merged 1 commit into
mainfrom
fix/gg-pending-state
May 31, 2026
Merged

fix: g waits for second keypress, gg works as two-key command#12
oribarilan merged 1 commit into
mainfrom
fix/gg-pending-state

Conversation

@oribarilan

@oribarilan oribarilan commented May 31, 2026

Copy link
Copy Markdown
Owner

Bare g no longer jumps to buffer start. It sets pending state and waits for the second key. gg moves to top, g+Escape cancels. Works in visual mode too.
Previously out of a technical constrain I used only g to act as what vim users would expect gg to do.
I also added the option to extend to additional g{char} commands like g0 etc, in the future.

@oribarilan oribarilan force-pushed the fix/gg-pending-state branch from 12e8c61 to ee3730d Compare May 31, 2026 13:44
g used to fire input.buffer.home on its own. Now sets pendingChar
and waits. gg moves to buffer start, g+Escape or g+unknown cancels.
Visual mode gg selects to buffer start.
@oribarilan oribarilan force-pushed the fix/gg-pending-state branch from ee3730d to f3de7d5 Compare May 31, 2026 13:45
@oribarilan oribarilan merged commit ed473c3 into main May 31, 2026
1 check passed
@oribarilan oribarilan deleted the fix/gg-pending-state branch May 31, 2026 13:45
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