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)
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
}
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.
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)
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.
Bumps tui-textarea from 0.4.0 to 0.5.3.
Release notes
Sourced from tui-textarea's releases.
... (truncated)
Changelog
Sourced from tui-textarea's changelog.
... (truncated)
Commits
e0c0737
bump up version to v0.5.33a9d143
caveat on conversion from termion's key event intoInput
(#68)9087e75
fixe
behavior in operator-pending mode ofvim
example6f5ca38
support 'Ctrl + Home' and 'Ctrl + End' for termion backend3937eca
refactor converting termion key event intoInput
0e32eed
support shift/ctrl/alt + arrow keys combinations added at termion v4e5500df
fix typosef28d09
Merge branch 'fix-lnum-horizontal-scroll' (fix #77)59ab95c
remove redundantclone()
call with ratatui4e1adc6
smoothly slide the line number part into screen on scrolling leftYou 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