зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-07 16:05:50 +03:00
update changelog for v0.1.1 changes
Этот коммит содержится в:
23
CHANGELOG.md
23
CHANGELOG.md
@@ -1,3 +1,25 @@
|
|||||||
|
<a name="v0.1.1"></a>
|
||||||
|
# [v0.1.1](https://github.com/rhysd/tui-textarea/releases/tag/v0.1.1) - 21 Jun 2022
|
||||||
|
|
||||||
|
- Add `TextArea::yank_text` and `TextArea::set_yank_text` to set/get yanked text of the textarea.
|
||||||
|
```rust
|
||||||
|
let mut textarea = TextArea::default();
|
||||||
|
textarea.set_yank_text("hello, world");
|
||||||
|
assert_eq!(textarea.yank_text(), "hello, world");
|
||||||
|
textarea.paste();
|
||||||
|
assert_eq!(textarea.lines(), ["hello, world"]);
|
||||||
|
```
|
||||||
|
- Add `CursorMove::Jump(row, col)` variant to move cursor to arbitrary (row, col) position with `TextArea::move_cursor`.
|
||||||
|
```rust
|
||||||
|
let mut textarea = TextArea::from(["aaaa", "bbbb"]);
|
||||||
|
textarea.move_cursor(CursorMove::Jump(1, 2));
|
||||||
|
assert_eq!(textarea.cursor(), (1, 2));
|
||||||
|
```
|
||||||
|
- Fix hard tabs are not rendered (#1)
|
||||||
|
|
||||||
|
[Changes][v0.1.1]
|
||||||
|
|
||||||
|
|
||||||
<a name="v0.1.0"></a>
|
<a name="v0.1.0"></a>
|
||||||
# [v0.1.0](https://github.com/rhysd/tui-textarea/releases/tag/v0.1.0) - 19 Jun 2022
|
# [v0.1.0](https://github.com/rhysd/tui-textarea/releases/tag/v0.1.0) - 19 Jun 2022
|
||||||
|
|
||||||
@@ -10,6 +32,7 @@ First release :tada:
|
|||||||
[Changes][v0.1.0]
|
[Changes][v0.1.0]
|
||||||
|
|
||||||
|
|
||||||
|
[v0.1.1]: https://github.com/rhysd/tui-textarea/compare/v0.1.0...v0.1.1
|
||||||
[v0.1.0]: https://github.com/rhysd/tui-textarea/tree/v0.1.0
|
[v0.1.0]: https://github.com/rhysd/tui-textarea/tree/v0.1.0
|
||||||
|
|
||||||
<!-- Generated by https://github.com/rhysd/changelog-from-release -->
|
<!-- Generated by https://github.com/rhysd/changelog-from-release -->
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user