Skip to content

refactor(tui): centralize key binding creation via helper#1702

Open
Pnkcaht wants to merge 1 commit intodocker:mainfrom
Pnkcaht:feat/keymap-config
Open

refactor(tui): centralize key binding creation via helper#1702
Pnkcaht wants to merge 1 commit intodocker:mainfrom
Pnkcaht:feat/keymap-config

Conversation

@Pnkcaht
Copy link
Contributor

@Pnkcaht Pnkcaht commented Feb 11, 2026

What I did

  • Introduced a newBinding helper to centralize the creation of key.Binding instances.
  • Refactored DefaultKeyMap() to use this helper instead of directly calling key.NewBinding.
  • Kept behavior unchanged — this is a purely internal refactor.

This is the first step toward enabling customizable keybindings in a clean and incremental way.

Signed-off-by: pnkcaht <samzoovsk19@gmail.com>
@Pnkcaht Pnkcaht requested a review from a team as a code owner February 11, 2026 22:59
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