Releases: rhysd/tui-textarea
Releases · rhysd/tui-textarea
v0.1.1
- Add
TextArea::yank_text
andTextArea::set_yank_text
to set/get yanked text of the textarea.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 withTextArea::move_cursor
.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)
v0.1.0
First release 🎉
- GitHub repository: https://github.com/rhysd/tui-textarea
- crates.io: https://crates.io/crates/tui-textarea
- docs.rs: https://docs.rs/tui-textarea/latest/tui_textarea/