akiomik / nostui

A TUI client for Nostr
MIT License
34 stars 5 forks source link

Bump tui-textarea from 0.4.0 to 0.5.3 #96

Open dependabot[bot] opened 3 months ago

dependabot[bot] commented 3 months ago

Bumps tui-textarea from 0.4.0 to 0.5.3.

Release notes

Sourced from tui-textarea's releases.

v0.5.3

  • &TextArea now implements Widget trait. (#78)
    • Now the reference can be passed to ratatui::terminal::Frame::render_widget method call directly.
      // v0.5.2 or earlier
      f.render_widget(textarea.widget(), rect);
      

      // v0.5.3 or later f.render_widget(&textarea, rect);

    • This means that TextArea::widget method is no longer necessary. To maintain the compatibility the method is not removed but using it starts to report a deprecation warning from v0.5.3.
  • Fix a cursor can leave the viewport on horizontal scroll when line number is displayed. (#77)
  • Support some key combinations added at termion v4 for termion feature. (#68)
    • termion::event::Key::CtrlLeft
    • termion::event::Key::CtrlRight
    • termion::event::Key::CtrlUp
    • termion::event::Key::CtrlDown
    • termion::event::Key::CtrlHome
    • termion::event::Key::CtrlEnd
    • termion::event::Key::AltLeft
    • termion::event::Key::AltRight
    • termion::event::Key::AltUp
    • termion::event::Key::AltDown
    • termion::event::Key::ShiftLeft
    • termion::event::Key::ShiftRight
    • termion::event::Key::ShiftUp
    • termion::event::Key::ShiftDown
  • Fix the border color is not applied in single_line example. (#79, thanks @​fmorroni)
  • Improve vim example's Vim emulation.
    • Fix the range of text selection on e mapping in operator-pending mode. (#76)
    • Fix the text selection on y, d, c mappings in visual mode is not inclusive.

v0.5.2

  • Do not hide a cursor when a placeholder text is printed. (#73, thanks @​kyu08)
    • demo
  • Add CursorMove::WordEnd which moves a cursor to the end of the next word inclusively. (#75, thanks @​achristmascarl)
    • The behavior is similar to e mapping of Vim in normal mode. vim example implements the mapping for demonstration.

v0.5.1

  • Add serde optional feature. When it is enabled, some types support the serialization/deserialization with serde crate. See the document for more details. (#62, thanks @​cestef)
    use tui_textarea::Input;
    

    let json = r#" { "key": { "Char": "a" }, "ctrl": true, "alt": false, "shift": true }

... (truncated)

Changelog

Sourced from tui-textarea's changelog.

v0.5.3 - 03 Aug 2024

  • &TextArea now implements Widget trait. (#78)
    • Now the reference can be passed to ratatui::terminal::Frame::render_widget method call directly.
      // v0.5.2 or earlier
      f.render_widget(textarea.widget(), rect);
      

      // v0.5.3 or later f.render_widget(&textarea, rect);

    • This means that TextArea::widget method is no longer necessary. To maintain the compatibility the method is not removed but using it starts to report a deprecation warning from v0.5.3.
  • Fix a cursor can leave the viewport on horizontal scroll when line number is displayed. (#77)
  • Support some key combinations added at termion v4 for termion feature. (#68)
    • termion::event::Key::CtrlLeft
    • termion::event::Key::CtrlRight
    • termion::event::Key::CtrlUp
    • termion::event::Key::CtrlDown
    • termion::event::Key::CtrlHome
    • termion::event::Key::CtrlEnd
    • termion::event::Key::AltLeft
    • termion::event::Key::AltRight
    • termion::event::Key::AltUp
    • termion::event::Key::AltDown
    • termion::event::Key::ShiftLeft
    • termion::event::Key::ShiftRight
    • termion::event::Key::ShiftUp
    • termion::event::Key::ShiftDown
  • Improve vim example's Vim emulation.
    • Fix the range of text selection on e mapping in operator-pending mode. (#76)
    • Fix the text selection on y, d, c mappings in visual mode is not inclusive.

[Changes][v0.5.3]

v0.5.2 - 01 Aug 2024

  • Do not hide a cursor when a placeholder text is printed. (#73, thanks @​kyu08)
    • demo
  • Add CursorMove::WordEnd which moves a cursor to the end of the next word inclusively. (#75, thanks @​achristmascarl)
    • The behavior is similar to e mapping of Vim in normal mode. vim example implements the mapping for demonstration.

[Changes][v0.5.2]

v0.5.1 - 12 Jul 2024

  • Add serde optional feature. When it is enabled, some types support the serialization/deserialization with serde crate. See the document for more details. (#62, thanks @​cestef)

... (truncated)

Commits
  • e0c0737 bump up version to v0.5.3
  • 3a9d143 caveat on conversion from termion's key event into Input (#68)
  • 9087e75 fix e behavior in operator-pending mode of vim example
  • 6f5ca38 support 'Ctrl + Home' and 'Ctrl + End' for termion backend
  • 3937eca refactor converting termion key event into Input
  • 0e32eed support shift/ctrl/alt + arrow keys combinations added at termion v4
  • e5500df fix typos
  • ef28d09 Merge branch 'fix-lnum-horizontal-scroll' (fix #77)
  • 59ab95c remove redundant clone() call with ratatui
  • 4e1adc6 smoothly slide the line number part into screen on scrolling left
  • Additional commits viewable in compare view


Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.