Jason Lee
|
2727a65494
|
resizable: Simplify Resizable API. (#1459)
- Added `on_resize` callback method to `ResizabelPanelGroup`.
## Break Changes
- Remove `state` argument from `h_resizable`, `v_resizable` method.
```diff
- v_resizable("resizable-1", state)
+ v_resizable("resizable-1")
```
- Removed `group` method from `ResizabelPanelGroup`, use `child`
instead.
```diff
- v_resizable(..).group(..)
+ v_resizable(..).child(..)
```
|
2025-10-29 23:01:05 +08:00 |
|
Jason Lee
|
a1ca8624af
|
example: Add file tree to Editor example. (#1457)
<img width="1205" height="861" alt="image"
src="https://github.com/user-attachments/assets/4b3814cd-7dc0-4fc1-8f0f-d98d7cc29294"
/>
|
2025-10-29 12:58:40 +00:00 |
|
Jason Lee
|
34ef0ff6d0
|
chore: Rename Dropdown to Select, TextInput to Input. (#1449)
## Break Change
- The `Dropdown` has been renamed to `Select`.
- The `TextInput` has been renamed to `Input`.
| Before | After |
| --- | --- |
| TextInput | Input |
| Dropdown | Select |
| DropdownItem | SelectItem |
| DropdownItemGroup | SelectGroup |
| DropdownState | SelectState |
| DropdownEvent | SelectEvent |
| DropdownDelegate | SelectDelegate |
| dropdown::ListEvent | ~~Removed~~ |
- Renamed `PopupMenuExt` to `DropdownMenu`.
- Removed pub mod `menu::popup_menu`, `menu::context_menu`, they are
moved into `menu` mod.
- Renamed `popup_menu` method to `dropdown_menu` for `DropdownMenu`,
`Panel`, `PanelView` and `DropdownButton`.
| Before | After |
| --- | --- |
| popup_menu::PopupMenuExt | menu::DropdownMenu |
| popup_menu | dropdown_menu |
| popup_menu_with_anchor | dropdown_menu_with_anchor |
|
2025-10-28 21:22:31 +08:00 |
|
Jason Lee
|
6ebb9418a0
|
editor: Use measure_indent_width for indent guides width. (#1428)
Continue #1426, this changes I was forgotten to push before #1426
merged.
|
2025-10-24 20:18:30 +08:00 |
|
Jason Lee
|
178269be63
|
editor: Add indent guides. (#1426)
<img width="1070" height="1006" alt="image"
src="https://github.com/user-attachments/assets/a456b055-b45f-45ae-84b0-452a952cc19c"
/>
|
2025-10-24 19:03:09 +08:00 |
|
Jason Lee
|
2574e7f812
|
story: Add open file to Markdown and Editor example. (#1363)
Close #1352
|
2025-10-13 11:52:16 +08:00 |
|
Jason Lee
|
6817c8d3cc
|
menu: Add AppMenuBar. (#1338)
- input: Change Input to not unselect when blur.
- popup_menu: Fix get key binding on PopupMenu with action context.
<img width="935" height="694" alt="image"
src="https://github.com/user-attachments/assets/295fa84e-f1d8-4f6f-8a77-601a45f8ad6d"
/>
## TODO
- [x] Keyboard support.
- [x] Add submenu to example.
- [ ] ~~Icon~~ and check support. Wait
https://github.com/zed-industries/zed/pull/39876
|
2025-10-10 21:03:16 +08:00 |
|
Jason Lee
|
d0396d779e
|
editor: Add document_colors LSP. (#1329)
|
2025-10-06 18:08:12 +08:00 |
|
Jason Lee
|
cfd060b66d
|
editor: Split Input and Editor background color. (#1323)
Keep input to use window background color, the `editor.background` only
for Editor mode.
|
2025-10-03 11:20:01 +08:00 |
|
Sunli
|
34b570cd8f
|
text_view: Refactor TextView, SyntaxHighlighter to use async to parsing. (#1299)
1. Parse content in the background thread
2. Remove unnecessary clones
3. `TextViewStyle` and `LanguageRegistry` can now be used across threads
|
2025-09-29 14:04:24 +08:00 |
|
Jason Lee
|
1c3eca93b8
|
editor: Revert to use ropey. (#1284)
For the License reason.
- The performance is slow down, before version can handle 200K lines,
now 150K lines is good.
|
2025-09-24 20:52:18 +08:00 |
|
Jason Lee
|
f93e9a9475
|
editor: Change to pass cursor as offset for completions method. (#1271)
And to support `filter_text` as completion item highlight match.
|
2025-09-22 16:29:51 +08:00 |
|
Jason Lee
|
62748aad9b
|
editor: Update CompletionProvider return type. (#1270)
|
2025-09-22 14:31:21 +08:00 |
|
Jason Lee
|
aa0f6d6222
|
editor: Improve range_to_utf16 and range_from_utf16 by use Rope. (#1268)
Now, we can work on 200K lines (editing).
--------
Now, all cost are on tree-sitter parse.
<img width="1091" height="672" alt="image"
src="https://github.com/user-attachments/assets/b111bc58-1334-40b2-9920-7006ad86bb3c"
/>
|
2025-09-22 14:07:30 +08:00 |
|