readme updated
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
name = "canvas"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
authors.workspace = true
|
||||
description.workspace = true
|
||||
description = "Form/textarea for TUI"
|
||||
readme.workspace = true
|
||||
repository.workspace = true
|
||||
categories.workspace = true
|
||||
|
||||
@@ -20,6 +20,7 @@ It provides:
|
||||
- Suggestions (asynchronous dropdowns)
|
||||
- Computed fields (derived values)
|
||||
- Textarea widget with cursor management
|
||||
- Syntax highlighting (via syntect)
|
||||
- Extensible architecture for custom behaviors
|
||||
|
||||
---
|
||||
@@ -29,7 +30,7 @@ It provides:
|
||||
Add the dependency to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependedsncies]
|
||||
[dependencies]
|
||||
canvas = { version = "0.x", features = ["gui", "cursor-style", "textarea", "validation"] }
|
||||
```
|
||||
|
||||
@@ -45,6 +46,7 @@ The library is feature‑gated. Enable only what you need:
|
||||
- `suggestions` – asynchronous suggestions dropdowns
|
||||
- `computed` – derived fields
|
||||
- `textarea` – textarea widget
|
||||
- `syntect` – syntax highlighting support
|
||||
- `textmode-vim` – Vim‑like editing (default)
|
||||
- `textmode-normal` – normal editing mode
|
||||
|
||||
@@ -66,6 +68,9 @@ cargo run --example textarea_vim --features "gui cursor-style textarea textmode-
|
||||
# Textarea with Normal mode
|
||||
cargo run --example textarea_normal --features "gui cursor-style textarea textmode-normal"
|
||||
|
||||
# Textarea with syntax highlighting
|
||||
cargo run --example textarea_syntax --features "gui cursor-style textarea syntect textmode-normal"
|
||||
|
||||
# Validation examples
|
||||
cargo run --example validation_1 --features "gui validation cursor-style"
|
||||
cargo run --example validation_2 --features "gui validation cursor-style"
|
||||
@@ -106,4 +111,3 @@ at your option.
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome. Please follow the existing code structure and feature‑gating conventions.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user