https://github.com/willothy/red
TUI library and text editor in Rust
https://github.com/willothy/red
Last synced: 11 months ago
JSON representation
TUI library and text editor in Rust
- Host: GitHub
- URL: https://github.com/willothy/red
- Owner: willothy
- Created: 2023-04-03T20:13:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T18:00:53.000Z (about 3 years ago)
- Last Synced: 2025-03-30T02:23:29.881Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# red
Text editor and TUI multiplexing library, for fun and education.
## Features:
- [x] Floating windows
- [ ] Render optimizations
- [x] Horizontal and vertical splits
- [x] Global keyboard events
- [x] Extensible widget trait
- [x] Conventient layout primitives
- [ ] Focus
- [ ] Focused-widget keyboard events
- [ ] Mouse events
## Demo
Watch in fullscreen, the lines don't render properly in a small viewport.
[FloatingDemo.webm](https://user-images.githubusercontent.com/38540736/231884015-44bb77ce-2111-4d92-b463-b6a02b29be8b.webm)
## Demo usage
The TUI library is not yet ready for use so it hasn't been published yet, but you can run the `demo` if you want to try it out.
```sh
$ git clone git@github.com:willothy/red
$ cd red
$ cargo run --example demo
```
### Demo keymaps:
- ``: quit
- ``: switch layout (not working with new UI manager yet)
- ``: switch current float
- ``: move the current float up
- ``: move the current float down
- ``: move the current float left
- ``: move the current float right
- ``: resize the current float
- ``: resize the current float
- ``: resize the current float
- ``: resize the current float