Skip to content

Correct keymap scrolling, refactor keymap for consistency#170

Open
zambetti wants to merge 6 commits intobjarneo:mainfrom
zambetti:keymap-scrolling
Open

Correct keymap scrolling, refactor keymap for consistency#170
zambetti wants to merge 6 commits intobjarneo:mainfrom
zambetti:keymap-scrolling

Conversation

@zambetti
Copy link
Copy Markdown
Contributor

@zambetti zambetti commented Apr 5, 2026

Corrects the scrolling behavior in the keymap view so it matches the persistent scrolling used in the playlist and file browser. Introduces a dedicated scroll state for the keymap view, ensuring the view only scrolls when the cursor moves outside the visible region. Additionally, there is some refactoring for style consistency with analogous functions of the file browser view.

@zambetti zambetti changed the title Correct keymap scrolling Correct keymap scrolling, refactor keymap for consistency Apr 6, 2026
m.keymap.cursor = 0

case msg.Code == tea.KeyUp:
case "up", "k":
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the kjgG? I would be nice to have them, but then you can't write certain characters while searching the keymap.

Copy link
Copy Markdown
Contributor Author

@zambetti zambetti Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes good sense. I have removed them.

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.

2 participants