An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

# Cursivext

[![cursivext-version](https://img.shields.io/crates/v/cursivext.svg?logo=rust)](https://crates.io/crates/cursivext)
[![Documentation](https://docs.rs/cursivext/badge.svg)](https://docs.rs/cursivext)

[![Apache-2 licensed](https://img.shields.io/crates/l/cursivext.svg?logo=apache)](../License)

## Get Started

### Checkbox

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 |