1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-07 16:05:50 +03:00

Merge pull request #75 from achristmascarl/cursor-word-end

add `CursorMove` for next end of word
Этот коммит содержится в:
Linda_pp
2024-07-31 22:51:12 +09:00
коммит произвёл GitHub
родитель e61c177cf9 eae80347d9
Коммит d9571ca50e
5 изменённых файлов: 66 добавлений и 2 удалений

Просмотреть файл

@@ -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::Down)` | Move cursor down by one line |
| `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::ParagraphForward)` | Move cursor up by paragraph |
| `textarea.move_cursor(CursorMove::ParagraphBack)` | Move cursor down by paragraph |
@@ -662,7 +663,7 @@ Values of the following types can be serialized/deserialized:
Here is an example for deserializing key input from JSON using [serde_json][].
```rust
```rust,ignore
use tui_textarea::Input;
let json = r#"