From 952158f93adf3f56a80967698a882fd28520faf3 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 17 Jul 2022 21:58:02 +0900 Subject: [PATCH] describe versioning and add search operation to modal usage --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 642ad64..5d49d12 100644 --- a/README.md +++ b/README.md @@ -458,6 +458,13 @@ loop { textarea.move_cursor(CursorMove::Home); mode = Mode::Insert; } + Input { key: Key::Char('/'), .. } => { + let pat = ...; + textarea.set_search_pattern(pat)?; + } + Input { key: Key::Esc, .. } => textarea.set_search_pattern("").unwrap(), + Input { key: Key::Char('n'), .. } => textarea.search_forward(), + Input { key: Key::Char('N'), .. } => textarea.search_back(), _ => {}, }, Mode::Insert => match read()?.into() { @@ -594,6 +601,15 @@ loop { See [`split` example](./examples/split.rs) and [`editor` example](./examples/editor.rs) for working example. +## Versioning + +This crate is not reaching v1.0.0 yet. There is no plan to bump the major version for now. Current versioning policy is +as follows: + +- Major: Fixed to 0 +- Minor: Bump on breaking change +- Patch: Bump on new feature or bug fix + ## Contributing to tui-textarea This project is developed [on GitHub][repo].