Skip to content

Update keymap to respect responsive height#167

Merged
bjarneo merged 4 commits intobjarneo:mainfrom
zambetti:keys-responsive
Apr 5, 2026
Merged

Update keymap to respect responsive height#167
bjarneo merged 4 commits intobjarneo:mainfrom
zambetti:keys-responsive

Conversation

@zambetti
Copy link
Copy Markdown
Contributor

@zambetti zambetti commented Apr 5, 2026

Adapted the ctrl+k keymap view to support responsive height, and aligned navigation behavior with other views by adding vim-style j/k and g/G

Comment thread ui/model/keymap.go Outdated
}
return nil

case "ctrl+x":
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.

why is it ctrl+x now?

Copy link
Copy Markdown
Contributor Author

@zambetti zambetti Apr 5, 2026

Choose a reason for hiding this comment

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

I should have described that decision in the PR description rather than only in the commit. When updating the keymap view to support responsive height, I realized that 'x' conflicted with the type-to-filter feature. When I encountered this, I realized that type-to-filter is such a nice feature, it would most certainly speed up the file browser if it were also there. I haven't had time to try to add type-to-filter to the file browser yet, hopefully soon. Thank you for being so responsive; cliamp is a great project, I have it running near-constantly lately throughout the day.

Comment thread ui/model/view_overlays.go
helpKey("Home/End", "Jump ") + helpKey("Type", "Filter ") + helpKey("Esc", "Close")
}

func (m Model) keymapVisibleRows() int {
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.

this function is similar to the earlier one? duplicated functions

Copy link
Copy Markdown
Contributor Author

@zambetti zambetti Apr 5, 2026

Choose a reason for hiding this comment

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

Eek. Sorry about this. Related to cleanliness, I've created a follow-up PR with some things that I should have caught in this PR related to scrolling behavior and style consistency across views. I will be more careful.

@bjarneo bjarneo merged commit 36e5d64 into bjarneo:main Apr 5, 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.

2 participants