зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-08 00:15:50 +03:00
implement minimal text search
- Set query with `TextArea::set_search_pattern` - Move cursor to next match `TextArea::search_forward` - Move cursor to previous match `TextArea::search_back`
Этот коммит содержится в:
@@ -24,9 +24,11 @@ include = [
|
||||
default = ["crossterm"]
|
||||
crossterm = ["dep:crossterm", "tui/crossterm"]
|
||||
termion = ["dep:termion", "tui/termion"]
|
||||
search = ["dep:regex"]
|
||||
|
||||
[dependencies]
|
||||
crossterm = { version = "0.23", optional = true }
|
||||
regex = { version = "1", optional = true }
|
||||
termion = { version = "1.5", optional = true }
|
||||
tui = { version = "0.18", default-features = false }
|
||||
|
||||
@@ -40,7 +42,7 @@ required-features = ["termion"]
|
||||
|
||||
[[example]]
|
||||
name = "editor"
|
||||
required-features = ["crossterm"]
|
||||
required-features = ["crossterm", "search"]
|
||||
|
||||
[[example]]
|
||||
name = "split"
|
||||
|
||||
Ссылка в новой задаче
Block a user