Jason Lee
|
ef1d727c3d
|
chore: Improve RopeExt API and add more docs. (#1289)
|
2025-09-25 18:17:46 +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
|
bf5650b5db
|
input: Add context menu for cut, copy, paste. (#1279)
Close #27
<img width="756" height="674" alt="image"
src="https://github.com/user-attachments/assets/07884a7e-366b-47b8-8bd7-a88f3cae52b8"
/>
|
2025-09-23 22:06:58 +08:00 |
|
Jason Lee
|
f1b6d7c5ed
|
editor: Add completion, code_action provider. (#1242)
|
2025-09-15 19:25:02 +08:00 |
|
Jason Lee
|
da85754b96
|
input: Refactor diagnostics. (#1240)
<img width="613" height="530" alt="image"
src="https://github.com/user-attachments/assets/be86658d-706c-411c-8ba6-09b495208051"
/>
## Break Changes
- The `Markers` has been renamed to use `Diagnostics`.
- The `input::LineNumber` has renamed to `input::Position` and changed
from 1-based to use 0-based.
- Renamed `go_to_line` to `set_cursor_position`, `line_column` to
`cursor_position`.
```diff
- pub fn line_column(&self) -> LineColumn
+ pub fn cursor_position(&self) -> Position
- pub fn go_to_line(&mut self, line: usize, column: Option<usize>, window: &mut Window, cx: &mut Context<Self>)
+ pub fn set_cursor_position(&mut self, position: impl Into<Position>, window: &mut Window, cx: &mut Context<Self>)
```
|
2025-09-11 16:54:40 +08:00 |
|
Jason Lee
|
3fa996c331
|
input: Fix line column by use chars offset. (#1239)
- Add autocorrect to markdown example for test `markers`.
<img width="1104" height="590" alt="image"
src="https://github.com/user-attachments/assets/03103088-e828-4039-82b0-c816d5f36141"
/>
|
2025-09-10 20:56:15 +08:00 |
|
Jason Lee
|
2a918bf4de
|
input: Improve TextWrapper data structure. (#1237)
|
2025-09-10 18:52:35 +08:00 |
|
Jason Lee
|
43c848893c
|
input: Refactor start_of_line, end_of_line by use Rope. (#1232)
- Removed `Cursor` struct, now use `usize` for selection offset.
|
2025-09-10 14:43:11 +08:00 |
|
Jason Lee
|
16f9380a63
|
highlighter: Fix some tokens were highlighted incorrectly (#1204)
Continue #1198
## Before
<img width="1322" height="1043" alt="image"
src="https://github.com/user-attachments/assets/85bedde2-cb24-4eed-be9c-64b7d5627f7c"
/>
## After
<img width="1056" height="1098" alt="image"
src="https://github.com/user-attachments/assets/2b65bd45-c24d-425e-b4ec-0e4408a3f6a4"
/>
|
2025-09-05 11:21:06 +08:00 |
|
Jason Lee
|
21dbaffcf4
|
input: Add Cursor and Selection type and export line number, cursor. (#1012)
|
2025-06-27 20:48:26 +08:00 |
|