readme updated

This commit is contained in:
Priec
2025-08-19 01:12:59 +02:00
parent 8ed2fbbe34
commit 49b31c6e92
2 changed files with 30 additions and 26 deletions

View File

@@ -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

View File

@@ -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 featuregated. Enable only what you need:
- `suggestions` asynchronous suggestions dropdowns
- `computed` derived fields
- `textarea` textarea widget
- `syntect` syntax highlighting support
- `textmode-vim` Vimlike 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 featuregating conventions.