Skip to content

feat(form): add strict group backtracking option#541

Open
cpcf wants to merge 2 commits intocharmbracelet:mainfrom
cpcf:main
Open

feat(form): add strict group backtracking option#541
cpcf wants to merge 2 commits intocharmbracelet:mainfrom
cpcf:main

Conversation

@cpcf
Copy link
Copy Markdown

@cpcf cpcf commented Feb 24, 2025

  • Added strictGroupBacktracking field to Form struct
  • Initialized strictGroupBacktracking with default true value
  • Introduced WithStrictGroupBacktracking method to configure backtracking behavior
  • Updated prevGroupMsg handling to respect strict backtracking setting
  • Fixed documentation typos in PrevGroup and PrevField comments
  • Added examples based on the existing bubbletea example

Closes #540

- Added `strictGroupBacktracking` field to `Form` struct
- Initialized `strictGroupBacktracking` with default `true` value
- Introduced `WithStrictGroupBacktracking` method to configure backtracking behavior
- Updated `prevGroupMsg` handling to respect strict backtracking setting
- Fixed documentation typos in `PrevGroup` and `PrevField` comments
@cpcf cpcf requested a review from a team as a code owner February 24, 2025 12:34
@cpcf cpcf requested review from meowgorithm and removed request for a team February 24, 2025 12:34
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.

Allow backtracking to previous group when current group is invalid

1 participant