Commit Graph

6 Commits

Author SHA1 Message Date
yetone
0786499712 feat: link diff and confirm (#1635) 2025-03-19 03:09:30 +08:00
yetone
191d7b8783 feat: claude text editor tool (#1631) 2025-03-19 00:09:49 +08:00
Hanchin Hsieh
bf61e3c7e3 fix: correct button rendering for multi-line messages in confirmation dialog
This commit fixes an issue where buttons in the confirmation dialog

would not render properly when displaying multi-line messages.

Changes:

- Add dynamic positioning for buttons based on message length

- Calculate button row position based on the number of lines in the message

- Update focus_button function to accept custom row parameter

- Ensure highlights are applied at correct positions for varied message lengths

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-17 16:47:35 +08:00
Hanchin Hsieh
3dd5bed48f feat(ui): add support for multi-line messages in confirm dialog
1. Split message into multiple lines using vim.split()

2. Apply indent to each line of the message using vim.tbl_map()

3. Improve code readability by using vim.iter() and chained methods

4. Simplify button line generation with string.rep()

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-17 16:21:39 +08:00
yetone
078f06320c feat: make confirm window large (#1605) 2025-03-17 02:31:17 +08:00
yetone
6e77da83c1 fix: better sidebar (#1603)
* fix: better sidebar

* feat: better msg history

* fix: tests
2025-03-17 01:40:05 +08:00