https://github.com/2moe/cursivext
A modular extension suite for Cursive (TUI library)
https://github.com/2moe/cursivext
Last synced: about 1 year ago
JSON representation
A modular extension suite for Cursive (TUI library)
- Host: GitHub
- URL: https://github.com/2moe/cursivext
- Owner: 2moe
- License: apache-2.0
- Created: 2025-04-02T00:07:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-02T00:21:27.000Z (about 1 year ago)
- Last Synced: 2025-04-02T00:29:10.842Z (about 1 year ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: docs/Readme.md
- License: License
Awesome Lists containing this project
README
# Cursivext
[](https://crates.io/crates/cursivext)
[](https://docs.rs/cursivext)
[](../License)
## Get Started
### Checkbox

```rust
use cursivext::{cursive, views::Checkbox};
use cursive::{With, views::Panel};
let checkbox = Checkbox::wrap_linear_layout("good?").wrap_with(Panel::new);
cursive::default()
.with(|siv| siv.add_layer(checkbox));
.run();
// => [✔︎] good?
```
**Note:** The original cursive 0.21.1 Checkbox is `[X] good?` instead of `[✔︎] good?`.
### cursive-tabs Keyboard Shortcuts
tabs::add_global_key_shortcuts
| Tab | Alt+ | Ctrl+Shift+ |
| --- | ---- | ----------- |
| 1 | 1 | F1 |
| ... | ... | ... |
| 9 | 9 | F9 |
| 10 | 0 | F10 |
tabs::add_global_tab_switch_key_shortcuts
| Direction | Primary Shortcut | Alternate Shortcut |
| ------------ | ---------------- | ------------------ |
| Previous Tab | Alt+PageUp | Ctrl+Alt+PageUp |
| Next Tab | Alt+PageDown | Ctrl+Alt+PageDown |