Jason Lee
|
60bebaf51f
|
markdown: Fix Todo list item checkbox style. (#962)
<img width="394" alt="image"
src="https://github.com/user-attachments/assets/dee22c50-4110-46e3-9205-320809c2ef00"
/>
|
2025-06-17 10:50:57 +08:00 |
|
Jason Lee
|
1032881103
|
markdown: Add debounce 500ms to update markdown to avoid render slow. (#953)
Ref #933
|
2025-06-12 19:15:23 +08:00 |
|
Jason Lee
|
c3ec1deb97
|
code-editor: Update CodeEditor to support external language. (#928)
Add [Navi](https://navi-lang.org) language for example to external
language for CodeEditor.
<img width="864" alt="image"
src="https://github.com/user-attachments/assets/73afa56d-31bd-4867-a9f2-0a8cf790af0f"
/>
|
2025-06-09 14:27:33 +08:00 |
|
Jason Lee
|
2b796c94e9
|
highlighter: Improve performance for large file. (#911)
Still need to improve.
This version can work smooth when the file lines are less than 5000
lines.
> cargo run --release on MacBook Pro, Apple M3 CPU
- Editing at 110 FPS+
- Display at 120 FPS.
<img width="977" alt="image"
src="https://github.com/user-attachments/assets/37958bcb-20d8-486b-8c50-2728d16f971b"
/>
|
2025-06-03 23:20:33 +08:00 |
|
Jason Lee
|
a4aff404ce
|
highlighter: Use tree-sitter to highlight code. (#904)
<img width="1318" alt="image"
src="https://github.com/user-attachments/assets/4a8e7b93-a7e7-4648-b8da-c5a6e7ede4f9"
/>
<img width="1318" alt="image"
src="https://github.com/user-attachments/assets/bfc35845-719f-4c97-bf50-087feb0f6775"
/>
|
2025-05-29 19:54:52 +08:00 |
|
Jason Lee
|
1cbbf6ef18
|
code-editor: Improve CodeEditor to has default themes. (#900)
|
2025-05-26 18:17:15 +08:00 |
|
Jason Lee
|
1c11b5fb55
|
inspector: Add Inspector. (#897)
<img width="1434" alt="image"
src="https://github.com/user-attachments/assets/f6ec2e1d-ff1c-4798-90fe-d29bef20fa9d"
/>
|
2025-05-26 16:44:11 +08:00 |
|
Jason Lee
|
a95482fdd8
|
chore: Upgrade GPUI 2025/05/26 with inspector changes. (#895)
https://github.com/zed-industries/zed/pull/31315
|
2025-05-26 13:40:27 +08:00 |
|
Jason Lee
|
d0ccb6bf17
|
code-editor: Improve code highlight performance. (#885)
- Split code to lines to improve performance and cache hit rate, close
#881
- Update default code highlight theme to use `macOS Classic`.
<img width="1208" alt="image"
src="https://github.com/user-attachments/assets/511b442d-5960-493f-88cc-b8aceb68f77b"
/>
<img width="1208" alt="image"
src="https://github.com/user-attachments/assets/6e5b2728-384f-4b62-b069-268118dec9ab"
/>
|
2025-05-22 18:09:18 +08:00 |
|
Jason Lee
|
5e4e810c0d
|
description_list: Add to support border style to DescriptionList vertical layout. (#706)
<img width="899" alt="image"
src="https://github.com/user-attachments/assets/38108d88-7b27-4964-8b1d-07b81522698b"
/>
<img width="980" alt="image"
src="https://github.com/user-attachments/assets/c4467a72-0011-486b-9918-af21297b8c3e"
/>
<img width="980" alt="image"
src="https://github.com/user-attachments/assets/21e8fc31-1642-4ab4-b180-01aea6e81b38"
/>
<img width="980" alt="image"
src="https://github.com/user-attachments/assets/65a02a85-7538-4b6f-83e5-33502c30367e"
/>
|
2025-03-11 17:59:56 +08:00 |
|
Jason Lee
|
6a00cfcc4a
|
text_view: Fix HTML render to support blockquote. (#703)
<img width="850" alt="image"
src="https://github.com/user-attachments/assets/4d8f662f-aebe-4c40-bc56-828627f16064"
/>
|
2025-03-10 22:53:53 +08:00 |
|
Jason Lee
|
c3f08d52b9
|
text_view: Add syntax highlight to CodeBlock. (#684)
<img width="1712" alt="image"
src="https://github.com/user-attachments/assets/e7539df4-20db-431b-9bbc-52e08e9de062"
/>
<img width="1712" alt="image"
src="https://github.com/user-attachments/assets/85d52319-1029-4306-8629-ec0321d0571b"
/>
|
2025-03-04 21:50:50 +08:00 |
|
Jason Lee
|
793a35eff2
|
text_view: Fix img height in TextView. (#679)
Close #643
<img width="1103" alt="image"
src="https://github.com/user-attachments/assets/0f0a0af0-8fe2-4322-b012-0f970ba9e13d"
/>
Ref https://github.com/zed-industries/zed/pull/25632
|
2025-03-03 20:51:26 +08:00 |
|
Jason Lee
|
7582ad3fb3
|
text_view: Add heading_base_font_size to TextViewStyle and fix text wrap for list item. (#670)
- Fix list item to wrap text.
<img width="797" alt="image"
src="https://github.com/user-attachments/assets/9e8156ad-bf58-4d7a-a850-69dfcb56c850"
/>
|
2025-02-28 11:43:08 +08:00 |
|
Jason Lee
|
3ba63915ce
|
text_view: Fix some case may lose spaces, <br> in HTML and Markdown render. (#667)
|
2025-02-26 17:52:18 +08:00 |
|
Jason Lee
|
ffa848fb26
|
text_view: Fix markdown table alignment. (#666)
|
2025-02-26 15:49:13 +08:00 |
|
Jason Lee
|
c74791aac8
|
description_list: Add DescriptionList. (#658)
<img width="1089" alt="image"
src="https://github.com/user-attachments/assets/15069422-14aa-4fa3-b661-65fcf7417323"
/>
<img width="1089" alt="image"
src="https://github.com/user-attachments/assets/df4a4b90-b304-40d3-a9ce-1be73eaaa9f4"
/>
<img width="1089" alt="image"
src="https://github.com/user-attachments/assets/1deaf1e8-4b30-4afd-90af-1bd0eecf53e2"
/>
|
2025-02-25 15:32:59 +08:00 |
|
Jason Lee
|
9f429592ce
|
text_view: Remove last paragraph bottom margin. (#660)
Now, we can be easy to use TextView for 1 line text.
## Break Changes
- Removed `inline` method by previous #649 added, this is not needed.
|
2025-02-25 14:27:59 +08:00 |
|
Jason Lee
|
3b4065ce4e
|
text_view: Stop propagation on click link in TextView. (#650)
To avoid trigger parent element, for example as a Label for checkbox.
|
2025-02-24 18:07:53 +08:00 |
|
Jason Lee
|
6bcc34c7f0
|
checkbox, switch: Improve Checkbox, Switch to use wrap text and TextView. (#651)
This change to revert #233 to let label to wrap.
<img width="1279" alt="image"
src="https://github.com/user-attachments/assets/8081216f-0ea0-4ba2-9095-6fd84102e03b"
/>
|
2025-02-24 18:04:06 +08:00 |
|
Jason Lee
|
8fa210bc21
|
text_view: Update Switch, Checkbox, Radio to let label method support TextView. (#649)
- Add `style` method to TextView.
- Add `inline` method to TextView to use default inline style.
|
2025-02-24 15:49:54 +08:00 |
|
Jason Lee
|
d54dcdf417
|
text_view: Refactor TextView to RenderOnce to easy usage. (#647)
|
2025-02-24 14:13:50 +08:00 |
|
Jason Lee
|
06f9178ec4
|
text: Add TextView with Markdown and Simple HTML support. (#639)
|
2025-02-20 20:08:59 +08:00 |
|