Skip to content

Releases: rhysd/tui-textarea

v0.1.1

21 Jun 07:02
Compare
Choose a tag to compare
  • Add TextArea::yank_text and TextArea::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 with TextArea::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

19 Jun 12:22
Compare
Choose a tag to compare