Skip to content

Standardize key handling pattern across bubble tea components #202

@digitalghost-dev

Description

@digitalghost-dev

Updated Update() methods in search and card commands to use consistent type switch pattern for message handling. This improves code organization and follows Bubble Tea conventions.

Changes:

  • Refactored search.go to use nested switch statement for key handling
  • Updated expansion_list.go to match the same pattern
  • Standardized quit key handling ("ctrl+c", "esc") across components
  • Improved code readability and maintainability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRefactoring existing code.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions