зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-08 08:25:51 +03:00
update tests, examples, readme
Этот коммит содержится в:
@@ -497,6 +497,7 @@ notify how to move the cursor.
|
|||||||
| `textarea.move_cursor(CursorMove::Up)` | Move cursor up by one line |
|
| `textarea.move_cursor(CursorMove::Up)` | Move cursor up by one line |
|
||||||
| `textarea.move_cursor(CursorMove::Down)` | Move cursor down by one line |
|
| `textarea.move_cursor(CursorMove::Down)` | Move cursor down by one line |
|
||||||
| `textarea.move_cursor(CursorMove::WordForward)` | Move cursor forward by word |
|
| `textarea.move_cursor(CursorMove::WordForward)` | Move cursor forward by word |
|
||||||
|
| `textarea.move_cursor(CursorMove::WordEnd)` | Move cursor to next end of word |
|
||||||
| `textarea.move_cursor(CursorMove::WordBack)` | Move cursor backward by word |
|
| `textarea.move_cursor(CursorMove::WordBack)` | Move cursor backward by word |
|
||||||
| `textarea.move_cursor(CursorMove::ParagraphForward)` | Move cursor up by paragraph |
|
| `textarea.move_cursor(CursorMove::ParagraphForward)` | Move cursor up by paragraph |
|
||||||
| `textarea.move_cursor(CursorMove::ParagraphBack)` | Move cursor down by paragraph |
|
| `textarea.move_cursor(CursorMove::ParagraphBack)` | Move cursor down by paragraph |
|
||||||
|
|||||||
@@ -112,6 +112,11 @@ impl Vim {
|
|||||||
key: Key::Char('w'),
|
key: Key::Char('w'),
|
||||||
..
|
..
|
||||||
} => textarea.move_cursor(CursorMove::WordForward),
|
} => textarea.move_cursor(CursorMove::WordForward),
|
||||||
|
Input {
|
||||||
|
key: Key::Char('e'),
|
||||||
|
ctrl: false,
|
||||||
|
..
|
||||||
|
} => textarea.move_cursor(CursorMove::WordEnd),
|
||||||
Input {
|
Input {
|
||||||
key: Key::Char('b'),
|
key: Key::Char('b'),
|
||||||
ctrl: false,
|
ctrl: false,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ fn empty_textarea() {
|
|||||||
Top,
|
Top,
|
||||||
Bottom,
|
Bottom,
|
||||||
WordForward,
|
WordForward,
|
||||||
|
WordEnd,
|
||||||
WordBack,
|
WordBack,
|
||||||
ParagraphForward,
|
ParagraphForward,
|
||||||
ParagraphBack,
|
ParagraphBack,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user